CN105743707A - Method for testing BMC log analyzing function based on Redhat system - Google Patents

Method for testing BMC log analyzing function based on Redhat system Download PDF

Info

Publication number
CN105743707A
CN105743707A CN201610199799.0A CN201610199799A CN105743707A CN 105743707 A CN105743707 A CN 105743707A CN 201610199799 A CN201610199799 A CN 201610199799A CN 105743707 A CN105743707 A CN 105743707A
Authority
CN
China
Prior art keywords
bmc
daily record
ipmitool
server
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
Application number
CN201610199799.0A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610199799.0A priority Critical patent/CN105743707A/en
Publication of CN105743707A publication Critical patent/CN105743707A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • 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
    • 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
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • G06F11/2635Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers using a storage for the test inputs, e.g. test ROM, script files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0695Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The invention discloses a method for testing a BMC log analyzing function based on a Redhat system, and belongs to the field of system test management. According to the test method provided by the invention, whether a BMC analyzes memory, QPI and PCIE errors normally or not can be verified. The BMC log analyzing function needs to be supported by a BIOS. According to the method, an ipmitool is used for simulating the BIOS; the ipmitool outputs error information to the BMC; and the BMC can analyze the error contents in detail and judge whether the BMC log analyzing function is normal or not through judging whether the analyzing results are the same to expected results or not. According to the method, the availability and usability of the server can be improved; the user satisfaction degree can be improved; the problems of the server appearing in an operation process can be accurately positioned; from the aspect of testing the stability of the server, the problem can be positioned more rapidly, more accurately and more visually; and a great deal of problem positioning and analyzing time can be saved.

Description

A kind of method based on Redhat system test BMC daily record analytical capabilities
Technical field
A kind of method based on Redhat system test BMC daily record analytical capabilities of disclosure, belongs to system test management domain.
Background technology
Baseboard management controller BMC, it it is the core of IPMI, an i.e. nonshared control unit, this controller is typically mounted on system board or blade, and IPMI and BMC constitutes sub-management system together, no matter to system, processor, BIOS, the state of operating system etc. how, can provide manageability and monitoring function.
By BMC, not only having been carried out the monitoring of the states such as temperature, voltage, fan, power supply, internal memory, PCIE, QPI is reported an error and also has been able to be resolved by BMC.Server develops into now sufficiently stable, but in long-play process, there will be hardware aging unavoidably, the faults such as damage, when some hardware device breaks down, it is possible to view dependent failure daily record by BMC, orientation problem faster, analyzes reason, changes parts etc..But in practical application, due to factors such as machine ages, environment, have minimum probability and occur, when these mistakes occur, it is necessary to be accurately positioned problem very difficult, it is therefore necessary to BMC daily record analytical capabilities is tested, check that whether this function of BMC is perfect.The present invention provides a kind of method based on Redhat system test BMC daily record analytical capabilities, and test b MC is to internal memory, PCIE, and whether the daily record analytical capabilities that QPI reports an error is normal, and is capable of test b MC support daily record capacity.
Summary of the invention
The present invention provides a kind of method based on Redhat system test BMC daily record analytical capabilities, and whether test b MC can correctly resolve correlation log reports an error, if this function is normal, it is possible to the availability of server and ease for use are greatly improved and improve user satisfaction.
The concrete scheme that the present invention proposes is:
A kind of method based on Redhat system test BMC daily record analytical capabilities, test main frame is under Redhat system, ipmitool is utilized to simulate BIOS output error message to server B MC, resolved by BMC, by judging that whether analysis result is identical with expected result, judge that whether BMC daily record error resolution function is normal, concretely comprise the following steps:
Test main frame installs Redhat operating system and network interface card;
Enter operating system, use root user to log in;
Open a terminal, perform serviceipmistart order;
Connecting test main frame and server B MC management interface, the IP address of configuration testing main frame, communicate with BMC;
BMCIP address in amendment test script, preserves and performs script;
Check BMC daily record, it is judged that whether BMC analysis result is identical with expected result.
BMC daily record amount is arranged heap(ed) capacity, and after reaching heap(ed) capacity, if daily record quantity continues to increase, then initial daily record is capped.
Ipmitool accesses BMC by corresponding interface, and the interface that order comprises has open, lan, open to refer to that OpenIPMI and BMC communicates, and Lan is communicated with BMC by EthernetLAN net.
In ipmitool and BMC communication, ipmi order basic format is:
ipmitool-HIP-U***-P***-Ilanraw
Wherein-H is the BMC IP address receiving IPMI order, and-U*** is the user name logging in BMC, and-P*** is the user cipher logging in BMC, and lan configures network channel, and raw sends an original IPMI request.
Usefulness of the present invention is:
Method of testing of the present invention can verify that BMC resolves memory, QPI, whether PCIE mistake is normal, BMC resolves journal function needs BIOS to support, the present invention utilizes ipmitool to simulate BIOS output error message can resolve wrong content in detail to BMC, BMC, by judging that whether analysis result is identical with expected result, judge that BMC daily record error resolution function is whether normal, improve the availability of server and ease for use and improve user satisfaction.For further server produced problem in running being accurately positioned.From testing service device stability aspect, it is possible to faster more accurate more intuitively orientation problem, save a large amount of positioning problems analysis time.
Accompanying drawing explanation
Fig. 1 the inventive method schematic flow sheet.
Detailed description of the invention
A kind of method based on Redhat system test BMC daily record analytical capabilities, test main frame is under Redhat system, ipmitool is utilized to simulate BIOS output error message to server B MC, resolved by BMC, by judging that whether analysis result is identical with expected result, judge that whether BMC daily record error resolution function is normal, concretely comprise the following steps:
Test main frame installs Redhat operating system and network interface card;
Enter operating system, use root user to log in;
Open a terminal, perform serviceipmistart order;
Connecting test main frame and server B MC management interface, the IP address of configuration testing main frame, communicate with BMC;
BMCIP address in amendment test script, preserves and performs script;
Check BMC daily record, it is judged that whether BMC analysis result is identical with expected result.
According to said method and summary of the invention, in conjunction with accompanying drawing, the present invention will be further described.
A kind of method based on Redhat system test BMC daily record analytical capabilities, test main frame is under Redhat system, ipmitool is utilized to simulate BIOS output error message to server B MC, resolved by BMC, by judging that whether analysis result is identical with expected result, judge that whether BMC daily record error resolution function is normal, concretely comprise the following steps:
(1) test main frame installs Redhat6.4 operating system and network interface card;
(2) enter operating system, use root user to log in;
(3) open a terminal, perform serviceipmistart order:
Startingipmidrivers:[OK]
Or startup module:
modprobeipmi_msghandler
modprobeipmi_devintf
modprobeipmi_si
modprobeipmi_poweroff
modprobeipmi_watchdog;
(4) connecting test main frame and server B MC management interface, the IP address of configuration testing main frame, communicate with BMC;
Wherein ipmitool accesses BMC by corresponding interface, the primary interface that order comprises has open, lan, open refers to that OpenIPMI and BMC communicates, Lan is communicated with BMC by the udp agreement of EthernetLAN net IPV4, specifically the data segment of UDP contains IPMIrequest/resoponse message, message has an IPMIsession head and RMCP head, and RMCP is 623 ports transmitting data to UDP, thus realizing communication;
(5) BMCIP address in amendment test script, preserves and performs script;
Localhost#./add_sel1
Localhost#sendingtheeventlog1
0100
0200
0300
(6) checking BMC daily record, it is judged that whether BMC analysis result is identical with expected result, it is possible to log in BMCweb interface, check eventlog option, if resolving normal, eventlog having following daily record:
SystemMemorySOCKET:1MEMcontroller:1DDRchannel:2DIMM:3-As serted
(7) BMC daily record amount can be arranged heap(ed) capacity, after reaching heap(ed) capacity, if daily record quantity continues to increase, then initial daily record is capped, and as performed ./add_sel1000, this order realizes 1000 memory, PCIE and QPI error resolution, after being namely finished, can produce 3000 daily records, when checking log recording, whether reaching heap(ed) capacity, if being not reaching to heap(ed) capacity, then continuing executing with ./add_sel, until reaching max log capacity, cover.It is of course also possible to BMC daily record amount is arranged heap(ed) capacity, after reaching heap(ed) capacity, daily record does not re-record, then daily record quantity is fixed on heap(ed) capacity, no longer updates.

Claims (4)

1. the method based on Redhat system test BMC daily record analytical capabilities, it is characterized in that test main frame is under Redhat system, ipmitool is utilized to simulate BIOS output error message to server B MC, resolved by BMC, by judging that whether analysis result is identical with expected result, judge that whether BMC daily record error resolution function is normal, concretely comprise the following steps:
Test main frame installs Redhat operating system and network interface card;
Enter operating system, use root user to log in;
Open a terminal, perform serviceipmistart order;
Connecting test main frame and server B MC management interface, the IP address of configuration testing main frame, communicate with BMC;
BMCIP address in amendment test script, preserves and performs script;
Check BMC daily record, it is judged that whether BMC analysis result is identical with expected result.
2. method according to claim 1, is characterized in that BMC daily record amount is arranged heap(ed) capacity, and after reaching heap(ed) capacity, if daily record quantity continues to increase, then initial daily record is capped.
3. method according to claim 1 and 2, is characterized in that ipmitool passes through corresponding interface and accesses BMC, and the interface that order comprises has open, lan, open to refer to that OpenIPMI and BMC communicates, and Lan is communicated with BMC by EthernetLAN net.
4. method according to claim 3, is characterized in that in ipmitool and BMC communication, ipmi order basic format is:
ipmitool-HIP-U***-P***-Ilanraw
Wherein-H is the BMC IP address receiving IPMI order, and-U*** is the user name logging in BMC, and-P*** is the user cipher logging in BMC, and lan configures network channel, and raw sends an original IPMI request.
CN201610199799.0A 2016-04-01 2016-04-01 Method for testing BMC log analyzing function based on Redhat system Pending CN105743707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610199799.0A CN105743707A (en) 2016-04-01 2016-04-01 Method for testing BMC log analyzing function based on Redhat system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610199799.0A CN105743707A (en) 2016-04-01 2016-04-01 Method for testing BMC log analyzing function based on Redhat system

Publications (1)

Publication Number Publication Date
CN105743707A true CN105743707A (en) 2016-07-06

Family

ID=56252582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610199799.0A Pending CN105743707A (en) 2016-04-01 2016-04-01 Method for testing BMC log analyzing function based on Redhat system

Country Status (1)

Country Link
CN (1) CN105743707A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656848A (en) * 2017-09-22 2018-02-02 郑州云海信息技术有限公司 A kind of method that checking BMC can store SEL number of entries and SEL covering functions
CN109257186A (en) * 2018-08-23 2019-01-22 郑州云海信息技术有限公司 A kind of method and system making server automatically from PXE network startup
CN109510742A (en) * 2019-01-25 2019-03-22 郑州云海信息技术有限公司 A kind of server network interface card remote test method, device, terminal and storage medium
CN109558327A (en) * 2018-12-04 2019-04-02 浪潮电子信息产业股份有限公司 A kind of wiring method, system and the associated component of BMC log
CN110008048A (en) * 2019-03-28 2019-07-12 联想(北京)有限公司 Information processing method and electronic equipment
CN111061597A (en) * 2019-10-18 2020-04-24 苏州浪潮智能科技有限公司 Method for testing KCS communication stability
CN114268569A (en) * 2020-09-16 2022-04-01 中盈优创资讯科技有限公司 Configurable network operation, maintenance, acceptance and test method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989220A (en) * 2009-08-05 2011-03-23 英业达股份有限公司 Pressure testing method
CN104360922A (en) * 2014-10-20 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically monitoring BMC working state based on ipmitool
CN105119772A (en) * 2015-07-23 2015-12-02 浪潮电子信息产业股份有限公司 IPMI function testing method of C/S structure
CN105404813A (en) * 2015-10-26 2016-03-16 浪潮电子信息产业股份有限公司 Host defensive system based log generation method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989220A (en) * 2009-08-05 2011-03-23 英业达股份有限公司 Pressure testing method
CN104360922A (en) * 2014-10-20 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically monitoring BMC working state based on ipmitool
CN105119772A (en) * 2015-07-23 2015-12-02 浪潮电子信息产业股份有限公司 IPMI function testing method of C/S structure
CN105404813A (en) * 2015-10-26 2016-03-16 浪潮电子信息产业股份有限公司 Host defensive system based log generation method, apparatus and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
乐晨: ""ipmitool对linux服务器进行IPMI管理"", 《HTTPS://MY.OSCHINA.NET/DAVEHE/BLOG/88801》 *
崔涛: ""使用ipmi实现Linux系统下对服务器的ipmi管理"", 《HTTPS://WWW.IBM.COM/DEVELOPERWORKS/CN/LINUX/L-IPMI/》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656848A (en) * 2017-09-22 2018-02-02 郑州云海信息技术有限公司 A kind of method that checking BMC can store SEL number of entries and SEL covering functions
CN109257186A (en) * 2018-08-23 2019-01-22 郑州云海信息技术有限公司 A kind of method and system making server automatically from PXE network startup
CN109558327A (en) * 2018-12-04 2019-04-02 浪潮电子信息产业股份有限公司 A kind of wiring method, system and the associated component of BMC log
CN109510742A (en) * 2019-01-25 2019-03-22 郑州云海信息技术有限公司 A kind of server network interface card remote test method, device, terminal and storage medium
CN109510742B (en) * 2019-01-25 2022-02-18 郑州云海信息技术有限公司 Server network card remote test method, device, terminal and storage medium
CN110008048A (en) * 2019-03-28 2019-07-12 联想(北京)有限公司 Information processing method and electronic equipment
CN111061597A (en) * 2019-10-18 2020-04-24 苏州浪潮智能科技有限公司 Method for testing KCS communication stability
CN111061597B (en) * 2019-10-18 2022-08-12 苏州浪潮智能科技有限公司 Method for testing KCS communication stability
CN114268569A (en) * 2020-09-16 2022-04-01 中盈优创资讯科技有限公司 Configurable network operation, maintenance, acceptance and test method and device
CN114268569B (en) * 2020-09-16 2023-10-31 中盈优创资讯科技有限公司 Configurable network operation and maintenance acceptance test method and device

Similar Documents

Publication Publication Date Title
CN105743707A (en) Method for testing BMC log analyzing function based on Redhat system
CN109361562B (en) Automatic testing method based on associated network equipment access
CN109802867B (en) Method and system for testing connection stability of network card NCSI
CN111459794A (en) Communication network testing method, device, computer equipment and storage medium
CN111786854B (en) Network card testing method and device, electronic equipment and readable storage medium
CN107193699A (en) One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes
CN109683997B (en) Method for accessing application program interface through sandbox, sandbox and sandbox equipment
CN104268076A (en) Memory bandwidth automatically testing method applicable to various processor platforms
CN108459850B (en) Method, device and system for generating test script
US20180357143A1 (en) Testing computing devices
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN103077114A (en) Automatic testing method based on communication protocol of temperature measuring device
CN103546586A (en) Internet Protocol (IP) address matching system and method
CN115061885A (en) Complete machine aging automatic test method and device, electronic equipment and storage medium
CN112256505A (en) Server stability testing method and device and related components
CN109471763B (en) Method, device, equipment and system for grabbing trace of NVME (network video management entity) hard disk
CN112269697B (en) Equipment storage performance testing method, system and related device
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN111078476B (en) Network card drive firmware stability test method, system, terminal and storage medium
CN109660386B (en) Software upgrading method for semiconductor memory aging test system
CN116483416A (en) Firmware online upgrading method, server and storage medium
CN112947964A (en) Chip firmware updating method, device, equipment and storage medium
CN110134559B (en) BMC fault detection method, system and related components
CN111082984A (en) Method and device for simulating login of network equipment to carry out command line interaction
CN107438259B (en) Method for positioning network management system performance module fault

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160706