CN108845909A - A kind of BMC method for testing pressure parallel based on Python - Google Patents
A kind of BMC method for testing pressure parallel based on Python Download PDFInfo
- Publication number
- CN108845909A CN108845909A CN201810638898.3A CN201810638898A CN108845909A CN 108845909 A CN108845909 A CN 108845909A CN 201810638898 A CN201810638898 A CN 201810638898A CN 108845909 A CN108845909 A CN 108845909A
- Authority
- CN
- China
- Prior art keywords
- bmc
- python
- module
- parallel based
- test
- 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/26—Functional testing
- G06F11/263—Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
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)
- Test And Diagnosis Of Digital Computers (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
The present disclosure provides a kind of BMC method for testing pressure parallel based on Python, by running Python script, it include the basic information of FRU, SEL, USER, MC, LAN and SDR under acquisition BMC original state, use Python multithreading module threading, circulation crawl at the appointed time simultaneously includes above-mentioned 6 BMC status informations compared with basic information, realizes the automatic pressure test to BMC.The present invention obtains the current Sensor state of BMC using the multi-threaded parallel method of Python, the stability that test b MC works in the case where mass data access request, and effectively avoiding frequently accessing BMC leads to BMC delay machine, to improve the stability of product.
Description
Technical field
It is more particularly to a kind of parallel based on Python the present invention relates to computer system velocity measuring technique field
BMC method for testing pressure.
Background technique
With the fast development of server industries, more and more clients start to be partial to buy large batch of server work
For the core application of oneself.So to the stability of server, higher requirements are also raised, and can server keep normal
Operating, have become Client application can stable operation premise.
Python be a kind of explanation type, object-oriented, dynamic data type high-level programming language.
BMC:BaseboardManagementController plays an important role in server monitoring management, it
It is a special service processor, it monitors a computer, network server or other hardware using sensor
The state of driving equipment, and communicated by independent connection line and system manager, BMC is that intelligent platform control connects
The a part of mouthful (IPMI, IntelligentPlatformManagementInterface) and be commonly included in template or
In the main circuit board for the equipment that person is monitored.The sensor of BMC is used to measure internal physical variable, such as:Temperature, humidity, electricity
Source voltage, fan speed, messaging parameter and operating system function, if any one in these variables has exceeded specified limitation
Except range, he is informed about administrator, and administrator will take correct measure using long-range control.Monitoring device can be with
Power cycle restarts when necessity, in this way, single administrator can remotely control numerous clothes simultaneously
Business device and other equipment, save the overall cost of network, and may insure reliability.
In server monitoring management process, SMC (SystemManagementController) needs continually from BMC
The state of each node is read, while BMC will also handle the request of user monitoring.Therefore, cause in order to avoid frequently accessing BMC
BMC delay machine improves the stability of product, needs to do pressure test to BMC in the server design stage.
Summary of the invention
In view of the above problems, the purpose of the present invention is to provide a kind of BMC method for testing pressure parallel based on Python,
The current Sensor state of BMC is obtained using the multi-threaded parallel method of Python, test b MC is in mass data access request
In the case of the stability that works, to improve the stability of product.
The present invention to achieve the above object, is achieved through the following technical solutions:A kind of BMC pressure parallel based on Python
Test method includes the following steps:
Step 1:Python is run, loads sys, time, os module for obtaining system information and path respectively, is used for log
The Logging module for formatting record, for the Subprocess module of subprocess creation, for creating multithreading
Threading module, for the Datetime module of time conversion, for obtaining the Getopt module for executing parameter;
Step 2:Use logging module initialization log format;
Step 3:The initialization information of BMC is obtained as basic information;
Step 4:Using threading module, circulation grabs BMC status information within the defined testing time simultaneously;
Step 5:Respectively by the BMC status information of crawl compared with basic information, while logging module record being called to compare knot
Fruit;If BMC status information is inconsistent with basic information, exception is tested, recording exceptional result simultaneously continues to compare;If advising
Without abnormal in the fixed testing time, then test terminates.
Further, it before using logging module initialization log format, obtains and executes parameter, the execution parameter includes
The address bmc ip and the address host of test.
Further, the basic information and BMC status information include FRU, SEL, User, lan, mc and sdr letter of BMC
Breath.
Further, using threading module, circulation crawl BMC status information is specific within the defined testing time simultaneously
For by calling OS command line to grab BMC status information.
Further, when executing OS command line crawl BMC status information, mistake is returned if executed, is just recorded in
In log.
Further, comparing function is established by defined function checkCurrentSettings, for what is newly grabbed
Whether BMC status information is consistent with basic information.
Further, after test, if test is normal, PASS is exported;If test is abnormal, FAIL is exported.
Further, if test is abnormal, the number check fail of failure is compared in output.
The prior art is compared, the beneficial effects of the invention are that:A kind of BMC pressure parallel based on Python proposed by the present invention
Force test method, by running Python script, obtaining under BMC original state includes FRU, SEL, USER, MC, LAN and SDR
Basic information, using Python multithreading module threading, at the same at the appointed time circulation crawl include above-mentioned 6
BMC status information compared with basic information, realize to the test of the automatic pressure of BMC.The present invention is multi-thread using Python's
Journey parallel method obtains the current Sensor state of BMC, the stabilization that test b MC works in the case where mass data access request
Property, effectively avoiding frequently accessing BMC leads to BMC delay machine, to improve the stability of product.
The present invention is based on Python, are common to the system environments of Windows and Linux, are widely used;It is needed for test
System ambient stable, test result are true and reliable.
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
Attached drawing 1 is flow chart of the method for the present invention.
Specific embodiment
It explains with reference to the accompanying drawing to a specific embodiment of the invention.
A kind of BMC method for testing pressure parallel based on Python as shown in Figure 1, includes the following steps:
Step 1:Python is run, loads sys, time, os module for obtaining system information and path respectively, is used for log
The Logging module for formatting record, for the Subprocess module of subprocess creation, for creating multithreading
Threading module, for the Datetime module of time conversion, for obtaining the Getopt module for executing parameter;
Step 2:Use logging module initialization log format;
Step 3:The initialization information of BMC is obtained as basic information;
Step 4:Using threading module, circulation grabs BMC status information within the defined testing time simultaneously;
Step 5:Respectively by the BMC status information of crawl compared with basic information, while logging module record being called to compare knot
Fruit;If BMC status information is inconsistent with basic information, exception is tested, recording exceptional result simultaneously continues to compare;If advising
Without abnormal in the fixed testing time, then test terminates.
Based on the BMC method for testing pressure parallel based on Python, specific program implement and interior
Hold as follows:
With reference to the drawings and specific embodiments, the invention will be further described.It should be understood that these embodiments are merely to illustrate
The present invention rather than limit the scope of the invention.In addition, it should also be understood that, after reading the content taught by the present invention, this field
Technical staff can make various changes or modifications the present invention, and such equivalent forms equally fall within range defined herein.
Claims (8)
1. a kind of BMC method for testing pressure parallel based on Python, which is characterized in that include the following steps:
Step 1:Python is run, loads sys, time, os module for obtaining system information and path respectively, is used for log
The Logging module for formatting record, for the Subprocess module of subprocess creation, for creating multithreading
Threading module, for the Datetime module of time conversion, for obtaining the Getopt module for executing parameter;
Step 2:Use logging module initialization log format;
Step 3:The initialization information of BMC is obtained as basic information;
Step 4:Using threading module, circulation grabs BMC status information within the defined testing time simultaneously;
Step 5:Respectively by the BMC status information of crawl compared with basic information, while logging module record being called to compare knot
Fruit;If BMC status information is inconsistent with basic information, exception is tested, recording exceptional result simultaneously continues to compare;If advising
Without abnormal in the fixed testing time, then test terminates.
2. the BMC method for testing pressure parallel based on Python according to claim 1, which is characterized in that using
Before logging module initialization log format, obtain execute parameter, it is described execute parameter include test the address bmc ip and
The address host.
3. the BMC method for testing pressure parallel based on Python according to claim 1, which is characterized in that the basis
Information and BMC status information include FRU, SEL, User, lan, mc and sdr information of BMC.
4. the BMC method for testing pressure parallel based on Python according to claim 1, it is characterised in that:
Using threading module, the circulation within the defined testing time grabs BMC status information specifically, passing through calling simultaneously
OS command line grabs BMC status information.
5. the BMC method for testing pressure parallel based on Python according to claim 4, it is characterised in that:
When executing OS command line crawl BMC status information, mistake is returned if executed, is just recorded in log.
6. the BMC method for testing pressure parallel based on Python according to claim 1, it is characterised in that:Pass through definition
Function checkCurrentSettings establishes comparing function, and the BMC status information for newly grabbing is with basic information
It is no consistent.
7. the BMC method for testing pressure parallel based on Python according to claim 1, it is characterised in that:Test terminates
Afterwards, if test is normal, PASS is exported;If test is abnormal, FAIL is exported.
8. the BMC method for testing pressure parallel based on Python according to claim 1, it is characterised in that:If test
Abnormal, then the number check fail of failure is compared in output.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810638898.3A CN108845909A (en) | 2018-06-20 | 2018-06-20 | A kind of BMC method for testing pressure parallel based on Python |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810638898.3A CN108845909A (en) | 2018-06-20 | 2018-06-20 | A kind of BMC method for testing pressure parallel based on Python |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108845909A true CN108845909A (en) | 2018-11-20 |
Family
ID=64202625
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810638898.3A Pending CN108845909A (en) | 2018-06-20 | 2018-06-20 | A kind of BMC method for testing pressure parallel based on Python |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108845909A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783292A (en) * | 2019-01-22 | 2019-05-21 | 郑州云海信息技术有限公司 | A kind of inspection method and system of server info |
CN110275806A (en) * | 2019-06-20 | 2019-09-24 | 深圳忆联信息系统有限公司 | SSD controller multimode concurrent testing method and device based on Python |
CN112101000A (en) * | 2020-09-17 | 2020-12-18 | 浪潮电子信息产业股份有限公司 | Information consistency test method, device, equipment and computer readable storage medium |
CN113157594A (en) * | 2021-05-24 | 2021-07-23 | 宁畅信息产业(北京)有限公司 | User permission testing method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893261A (en) * | 2016-04-01 | 2016-08-24 | 浪潮电子信息产业股份有限公司 | Method for automatically testing server BMC stability |
CN107864067A (en) * | 2017-10-23 | 2018-03-30 | 上海斐讯数据通信技术有限公司 | A kind of method and system of test router compatibility |
CN108089566A (en) * | 2017-11-23 | 2018-05-29 | 郑州云海信息技术有限公司 | A kind of BMC stability parallel test method and system |
CN108108441A (en) * | 2017-12-21 | 2018-06-01 | 新博卓畅技术(北京)有限公司 | A kind of database table structure analysis method and system |
-
2018
- 2018-06-20 CN CN201810638898.3A patent/CN108845909A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893261A (en) * | 2016-04-01 | 2016-08-24 | 浪潮电子信息产业股份有限公司 | Method for automatically testing server BMC stability |
CN107864067A (en) * | 2017-10-23 | 2018-03-30 | 上海斐讯数据通信技术有限公司 | A kind of method and system of test router compatibility |
CN108089566A (en) * | 2017-11-23 | 2018-05-29 | 郑州云海信息技术有限公司 | A kind of BMC stability parallel test method and system |
CN108108441A (en) * | 2017-12-21 | 2018-06-01 | 新博卓畅技术(北京)有限公司 | A kind of database table structure analysis method and system |
Non-Patent Citations (1)
Title |
---|
郭敏等: "基于多线程的NAO机器人同步启动技术研究与实现", 《软件导刊》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783292A (en) * | 2019-01-22 | 2019-05-21 | 郑州云海信息技术有限公司 | A kind of inspection method and system of server info |
CN110275806A (en) * | 2019-06-20 | 2019-09-24 | 深圳忆联信息系统有限公司 | SSD controller multimode concurrent testing method and device based on Python |
CN112101000A (en) * | 2020-09-17 | 2020-12-18 | 浪潮电子信息产业股份有限公司 | Information consistency test method, device, equipment and computer readable storage medium |
CN113157594A (en) * | 2021-05-24 | 2021-07-23 | 宁畅信息产业(北京)有限公司 | User permission testing method and device, electronic equipment and storage medium |
CN113157594B (en) * | 2021-05-24 | 2024-05-24 | 宁畅信息产业(北京)有限公司 | User permission testing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108845909A (en) | A kind of BMC method for testing pressure parallel based on Python | |
US9569325B2 (en) | Method and system for automated test and result comparison | |
US8972788B2 (en) | Ticket consolidation | |
US8793578B2 (en) | Automating execution of arbitrary graphical interface applications | |
Kandula et al. | Detailed diagnosis in enterprise networks | |
TWI450103B (en) | Remote management systems and methods for servers, and computer program products thereof | |
US7181651B2 (en) | Detecting and correcting a failure sequence in a computer system before a failure occurs | |
CN108768730B (en) | Method and device for operating intelligent network card | |
Zheng et al. | 3-dimensional root cause diagnosis via co-analysis | |
JP2015526822A (en) | Compliance testing engine for integrated computer systems | |
US9122784B2 (en) | Isolation of problems in a virtual environment | |
US20180026848A9 (en) | Isolation of problems in a virtual environment | |
WO2023115999A1 (en) | Device state monitoring method, apparatus, and device, and computer-readable storage medium | |
WO2020010890A1 (en) | Method and system for monitoring resource utilization rate of server cpu based on bmc | |
US9842044B2 (en) | Commit sensitive tests | |
Pelleg et al. | Vigilant: out-of-band detection of failures in virtual machines | |
CN116775141A (en) | Abnormality detection method, abnormality detection device, computer device, and storage medium | |
CN111625386A (en) | Monitoring method and device for power-on overtime of system equipment | |
CN113708986B (en) | Server monitoring apparatus, method and computer-readable storage medium | |
US20140359365A1 (en) | Integrated Configuration Management and Monitoring for Computer Systems | |
TWI393003B (en) | Remote hardware inspection system and method | |
US7823018B2 (en) | Methods, systems and computer program products for CPU signaturing to aide in performance analysis | |
CN108650132A (en) | A kind of cabinet power supply stability detection method, device, equipment and storage medium | |
US9092333B2 (en) | Fault isolation with abstracted objects | |
Sidorov | Methods and tools to increase fault tolerance of high-performance computing systems |
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 |
Application publication date: 20181120 |
|
RJ01 | Rejection of invention patent application after publication |