CN108073484A - A kind of BMC times accuracy test method and system - Google Patents
A kind of BMC times accuracy test method and system Download PDFInfo
- Publication number
- CN108073484A CN108073484A CN201711183348.9A CN201711183348A CN108073484A CN 108073484 A CN108073484 A CN 108073484A CN 201711183348 A CN201711183348 A CN 201711183348A CN 108073484 A CN108073484 A CN 108073484A
- Authority
- CN
- China
- Prior art keywords
- bmc
- measured
- time
- test
- pressure
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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/2215—Detection 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 error correction or detection circuits
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2268—Logging of test results
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 invention discloses a kind of BMC times accuracy test methods, comprise the following steps:The variate-value of BMC to be measured is identified from configuration file;It reads respectively the time of BMC to be measured and the time of test machine, records difference;Pressure test is performed to BMC to be measured;The time of BMC to be measured and the time of test machine are read again after pressure test respectively, records difference.Time and the record of test machine and BMC to be measured are first captured before present invention test respectively;Start test, the pressure test of BMC is interted in test process, can also be realized by configuration file and batch testing is carried out at the same time to BMC;After the completion of test, the two time is compared again, by calculating time migration ratio to determine whether test passes through.The automatized script can be reduced and manually operated, and improve the accuracy of test;BMC pressure tests are added in, closer to Client application scene;It realizes batch testing, improves the efficiency of test.
Description
Technical field
The present invention relates to server technical field of measurement and test, especially a kind of BMC times accuracy test method and system.
Background technology
IPMI (IntelligentPlatform Management Interface) i.e. Intelligent Platform Management Interface is to make
Hardware management possesses the universal interface standard of new generation of " intelligence ".User can utilize the physics of IPMI monitoring servers special
Sign, such as the supply of temperature, voltage, electric fan working condition, power supply and cabinet invasion.The advantage of IPMI maximums is that it is independent
In CPU, BIOS and OS, so user is no matter in the state of start or shutdown, realized pair as long as powering on
The monitoring of server.IPMI is a kind of standard of specification, and most important one physical unit is exactly BMC (Baseboard
Management Controller), a kind of embedded management microcontroller, it is equivalent to " brain " of entire platform management, leads to
The data of each sensor can be monitored and record the daily record of various events by crossing its IPMI.
Shell refers to the software of " provide user and use interface ".It is similar to command under DOS and later
cmd.exe.It receives user command, then calls corresponding application program.It is a kind of programming language again simultaneously.As
Command lanuage, its interactive mode are explained and are performed order input by user or automatically explain and perform a pre-set company
The order of string;As programming language, it defines various variables and parameter, and provides many and just have in high-level language
Some control structures, including Xun Huan and branch.
In server field at this stage, for considering for cost, the clock source of most server B MC is in BMC sheets
Body, although BIOS can actively handle be time-synchronized to BMC when it starts, and BMC in itself can also be periodically same with ntp server
The time is walked, but still has client because safely considerations being waited to be not connected to ntp server, this requires the timing of BMC itself is very accurate,
Could be by warning information accurate recording strictly according to the facts, otherwise the confidence level of alarm log will have a greatly reduced quality.
The drawbacks of previous BMC times accuracy test, which passes through, manually to be compared, this method is that have certain deviation, and with
Past test does not add in BMC pressure tests, the considerations of lacking to client's practical situations, causes can refer to for test result
Property is not high.
The content of the invention
The object of the present invention is to provide a kind of BMC times accuracy test method and systems, realize automatic comparison test knot
Fruit reduces the error artificially checked;Additionally by BMC pressure tests are added in, closer to Client application scene;It can also be to service
Device carries out batch testing, improves testing efficiency.
To achieve the above object, the present invention uses following technical proposals:
A kind of BMC times accuracy test method, comprises the following steps:
The variate-value of BMC to be measured is identified from configuration file;
It reads respectively the time of BMC to be measured and the time of test machine, records difference;
Pressure test is performed to BMC to be measured;
The time of BMC to be measured and the time of test machine are read again after pressure test respectively, records difference.
Further, before the variate-value step that BMC to be measured is identified from configuration file, further include, to BMC to be measured
Carry out parameter configuration.
Further, it is described that parameter configuration is carried out to BMC to be measured, the IP including completing by configuration file BMC to be measured
Location, user name, the parameter configuration of password.
Further, the variate-value that BMC to be measured is identified from configuration file, including:System is obtained from configuration file
Take the IP address variable, BMC user names variable to be measured, BMC cryptographic variables to be measured of BMC to be measured.
Further, the time of the time and test machine for reading BMC to be measured respectively records difference, including:
Establish the file for being used to store BMC log daily records to be measured with date name;
It reads the current time of BMC to be measured and the current time of test machine and makes the difference, calculate time deviation and preserve.
Further, it is described that pressure test is performed to BMC to be measured, it is realized specifically by endless loop with outer to BMC to be measured
Pressure test.
A kind of BMC times accuracy tests system, including parameter configuration module, batch complete the IP address to BMC to be measured,
The parameter configuration of username and password;
Time handling module reads the time of BMC to be measured and the time of machine to be measured respectively;
Pressure test module is realized to BMC pressure tests to be measured;
Time transfer receiver module is completed to make the difference the time of BMC to be measured and the time of machine to be measured, and compared with setting value
It is right.
The effect provided in the content of the invention is only the effect of embodiment rather than invents all whole effects, above-mentioned
A technical solution in technical solution has the following advantages that or advantageous effect:
Time and the record of test machine and BMC to be measured are first captured before present invention test respectively;Start and test, in test process
The pressure test of interspersed BMC, can also be realized by configuration file and be carried out at the same time batch testing to BMC;After the completion of test, compare again
To the two time, by calculating time migration ratio to determine whether test passes through.The automatized script can be reduced manually
Operation improves the accuracy of test;BMC pressure tests are added in, closer to Client application scene;It realizes batch testing, improves and survey
The efficiency of examination.
Description of the drawings
Fig. 1 is BMC times accuracy test method flow chart of the present invention;
Fig. 2 is BMC times accuracy test system schematic of the present invention.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by specific embodiment, and its attached drawing is combined, to this hair
It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention
Structure.In order to simplify disclosure of the invention, hereinafter the component and setting of specific examples are described.In addition, the present invention can be with
Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated
Relation between various embodiments are discussed and/or are set.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings
It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
The premise of test is that a time accurate machine is looked for do test machine, has such as done the service of oversampling clock accuracy test
Device or the PC that is connected to network N TP servers etc..
As shown in Figure 1, a kind of BMC times accuracy test method, comprises the following steps:
S1, parameter configuration is carried out to BMC to be measured;
S2, the variate-value that BMC to be measured is identified from configuration file;
The time of S3, the time for reading BMC to be measured respectively and test machine record difference;
S4, pressure test is performed to BMC to be measured;
The time of BMC to be measured and the time of test machine are read again after S5, pressure test respectively, records difference.
Principal function controls entire test process
In step S1, parameter configuration is carried out to BMC to be measured, including completing the IP address of BMC to be measured by configuration file, using
Name in an account book, the parameter configuration of password.IP, user name, the password of BMC to be measured is inputted, is realized by way of configuration file, so done
Benefit be to facilitate the large batch of data of deposit, realize batch testing, the form of configuration file (config.txt) is as follows:
In step S2, the variate-value of BMC to be measured is identified from configuration file, including:System is obtained from configuration file and treated
Survey BMC address variable $ IP, BMC user names variable $ USER to be measured, BMC cryptographic variables $ PASSWD to be measured, this three by
Shell scripts are read from configuration file automatically, and the code of realization is as follows:
cat config.txt|awk'{print$1}'|while read IP
cat config.txt|awk'{print$2}'|while read USER
cat config.txt|awk'{print$3}'|while read PASSWD
It in step S3, reads respectively the time of BMC to be measured and the time of test machine, records difference, including:S31, establish with
The file for being used to store BMC log daily records to be measured of date name;Before official testing is started, in order to make result apparent
Clearly, while beneficial to not obscuring mutually with other results, the file named with the date is first established, for there are all services to be measured
The Log of device, code are as follows:
RESULT_DIR=`date+%Y%m%d-%H%M`
S32, the current time for reading BMC to be measured and test machine current time and make the difference, calculate time deviation and simultaneously preserve.
Order and IPMI standard order are carried by Linux, the current time of read test machine and BMC to be measured, and recording respectively
Come, realization method:
In step S4, pressure test is performed to BMC to be measured, is realized specifically by endless loop with the outer pressure to BMC to be measured
Power is tested.Code is as follows:
As shown in Fig. 2, a kind of BMC times accuracy test system, including parameter configuration module 101, batch is completed to treat
Survey IP address, the parameter configuration of username and password of BMC;
Time handling module 102 reads the time of BMC to be measured and the time of machine to be measured respectively;
Pressure test module 103 is realized to BMC pressure tests to be measured;
Time transfer receiver module 104 is completed to make the difference the time of BMC to be measured and the time of machine to be measured, and is carried out with setting value
It compares.
Above-mentioned, although the foregoing specific embodiments of the present invention is described with reference to the accompanying drawings, not protects model to the present invention
The limitation enclosed, those skilled in the art should understand that, based on the technical solutions of the present invention, those skilled in the art are not
Need to make the creative labor the various modifications or changes that can be made still within protection scope of the present invention.
Claims (7)
1. a kind of BMC times accuracy test method, it is characterized in that, comprise the following steps:
The variate-value of BMC to be measured is identified from configuration file;
It reads respectively the time of BMC to be measured and the time of test machine, records difference;
Pressure test is performed to BMC to be measured;
The time of BMC to be measured and the time of test machine are read again after pressure test respectively, records difference.
2. a kind of BMC times accuracy test method as described in claim 1, it is characterized in that, it is described to know from configuration file
It before the variate-value step of BMC not to be measured, further includes, parameter configuration is carried out to BMC to be measured.
3. a kind of BMC times accuracy test method as claimed in claim 2, it is characterized in that, it is described that BMC to be measured is joined
Number configuration, IP address, user name, the parameter configuration of password including completing BMC to be measured by configuration file.
4. a kind of BMC times accuracy test method as described in claim 1, it is characterized in that, it is described to know from configuration file
The variate-value of BMC not to be measured, including:System obtains the IP address variable of BMC to be measured, BMC user names to be measured from configuration file
Variable, BMC cryptographic variables to be measured.
5. a kind of BMC times accuracy test method as described in claim 1, it is characterized in that, it is described to read BMC to be measured respectively
Time and test machine time, record difference, including:
Establish the file for being used to store BMC log daily records to be measured with date name;
It reads the current time of BMC to be measured and the current time of test machine and makes the difference, calculate time deviation and preserve.
6. a kind of BMC times accuracy test method as described in claim 1, it is characterized in that, it is described that pressure is performed to BMC to be measured
Power is tested, and is realized specifically by endless loop with the outer pressure test to BMC to be measured.
7. a kind of BMC times accuracy tests system, it is characterized in that, including parameter configuration module, batch is completed to BMC's to be measured
IP address, the parameter configuration of username and password;
Time handling module reads the time of BMC to be measured and the time of machine to be measured respectively;
Pressure test module is realized to BMC pressure tests to be measured;
Time transfer receiver module is completed to make the difference the time of BMC to be measured and the time of machine to be measured, and is compared with setting value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711183348.9A CN108073484A (en) | 2017-11-23 | 2017-11-23 | A kind of BMC times accuracy test method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711183348.9A CN108073484A (en) | 2017-11-23 | 2017-11-23 | A kind of BMC times accuracy test method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108073484A true CN108073484A (en) | 2018-05-25 |
Family
ID=62157404
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711183348.9A Pending CN108073484A (en) | 2017-11-23 | 2017-11-23 | A kind of BMC times accuracy test method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108073484A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108763004A (en) * | 2018-05-29 | 2018-11-06 | 郑州云海信息技术有限公司 | One kind interconnecting test method and system from server duplexed system |
CN109032908A (en) * | 2018-07-20 | 2018-12-18 | 郑州云海信息技术有限公司 | Batch realizes the test method and system of BMC time and OS time consistency |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103718186A (en) * | 2013-09-05 | 2014-04-09 | 华为技术有限公司 | Storage system and data operation request treatment method |
CN105550090A (en) * | 2015-12-10 | 2016-05-04 | 浪潮电子信息产业股份有限公司 | LINUX platform-based automatic BMC pressure test method |
CN106201812A (en) * | 2016-07-15 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of BMCSensor pressure monitor method of testing based on IPMI service |
CN106533817A (en) * | 2017-01-23 | 2017-03-22 | 郑州云海信息技术有限公司 | Method and device for setting attribute information of BMC |
CN106572200A (en) * | 2016-11-10 | 2017-04-19 | 郑州云海信息技术有限公司 | IP address configuration method and IP address configuration device for baseboard management controller BMC |
CN106802836A (en) * | 2017-01-17 | 2017-06-06 | 郑州云海信息技术有限公司 | A kind of method and device of detection BMC timing accuracies |
-
2017
- 2017-11-23 CN CN201711183348.9A patent/CN108073484A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103718186A (en) * | 2013-09-05 | 2014-04-09 | 华为技术有限公司 | Storage system and data operation request treatment method |
CN105550090A (en) * | 2015-12-10 | 2016-05-04 | 浪潮电子信息产业股份有限公司 | LINUX platform-based automatic BMC pressure test method |
CN106201812A (en) * | 2016-07-15 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of BMCSensor pressure monitor method of testing based on IPMI service |
CN106572200A (en) * | 2016-11-10 | 2017-04-19 | 郑州云海信息技术有限公司 | IP address configuration method and IP address configuration device for baseboard management controller BMC |
CN106802836A (en) * | 2017-01-17 | 2017-06-06 | 郑州云海信息技术有限公司 | A kind of method and device of detection BMC timing accuracies |
CN106533817A (en) * | 2017-01-23 | 2017-03-22 | 郑州云海信息技术有限公司 | Method and device for setting attribute information of BMC |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108763004A (en) * | 2018-05-29 | 2018-11-06 | 郑州云海信息技术有限公司 | One kind interconnecting test method and system from server duplexed system |
CN109032908A (en) * | 2018-07-20 | 2018-12-18 | 郑州云海信息技术有限公司 | Batch realizes the test method and system of BMC time and OS time consistency |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111262759B (en) | Internet of things platform testing method, device, equipment and storage medium | |
US9756030B2 (en) | Secure cloud based multi-tier provisioning | |
CN108089566A (en) | A kind of BMC stability parallel test method and system | |
CN110162435B (en) | Method, system, terminal and storage medium for starting and testing PXE of server | |
JP5689400B2 (en) | Computer program verification of unexpected responses to access requests | |
CN109254783A (en) | A kind of server system installation method, device, equipment and readable storage medium storing program for executing | |
CN106919485A (en) | A kind of system based on configuration hardware testing instrument on server | |
CN109445801A (en) | A kind of method and apparatus detecting bare machine network interface card information | |
CN111694749A (en) | Automatic interface testing method and device, computer equipment and readable storage medium | |
CN109117330A (en) | A kind of test method, test macro and the relevant apparatus of SSD power-on and power-off | |
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
CN109240851A (en) | A kind of autonomous type realization self-healing method and system of batch BMC | |
CN108073484A (en) | A kind of BMC times accuracy test method and system | |
CN106656927A (en) | Method and device for enabling Linux account to be added to AD domain | |
CN110727575B (en) | Information processing method, system, device and storage medium | |
CN107143513A (en) | Server fan control strategy remote management formula firmware development method based on BMC | |
BRPI0815264B1 (en) | METHOD, EQUIPMENT AND PHYSICAL SUPPORT FOR MONITORING NETWORK RESOURCES NEWLY ADDED TO THE COMPUTER FOR SERVICE LEVEL OBJECTIVES | |
WO2019100690A1 (en) | Electronic device, testing method, system and computer readable storage medium | |
CN107329914A (en) | It is a kind of that the out of order method and device of hard disk is detected based on linux system | |
US20170262032A1 (en) | Method and apparatus for controlling a network node | |
CN112541841B (en) | Method, device and terminal equipment for simulating past future data | |
CN106603343A (en) | A method for testing stability of servers in batch | |
CN114416451A (en) | Server testing method and device, computer equipment and storage medium | |
CN109783026A (en) | A kind of method and device of automatic configuration server RAID | |
CN112905437A (en) | Method and device for testing case and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180525 |