CN107861831A - 一种自动快速添加BMC sel日志的方法 - Google Patents

一种自动快速添加BMC sel日志的方法 Download PDF

Info

Publication number
CN107861831A
CN107861831A CN201711288883.0A CN201711288883A CN107861831A CN 107861831 A CN107861831 A CN 107861831A CN 201711288883 A CN201711288883 A CN 201711288883A CN 107861831 A CN107861831 A CN 107861831A
Authority
CN
China
Prior art keywords
daily record
daily
addition
records
record
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
CN201711288883.0A
Other languages
English (en)
Inventor
吴培琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201711288883.0A priority Critical patent/CN107861831A/zh
Publication of CN107861831A publication Critical patent/CN107861831A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0787Storage of error reports, e.g. persistent data storage, storage using memory protection

Landscapes

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

Abstract

本发明公开一种自动快速添加BMC sel日志的方法,包括以下步骤:将添加日志脚本拷贝到系统;运行添加日志脚本进行日志添加;当日志达到90%以上,系统记录warning日志;当日志达到100%时,系统记录critical日志。本发明通过shell脚本实现日志添加,用户只需运行脚本,即可实现日志自动快速的添加,且用户可根据需要设置添加记录日志的条数以及需要添加日志的内容,减少了系统一直重启或者触发其他事件记录log的事件,大大的减少测试时间,提高测试效率。

Description

一种自动快速添加BMC sel日志的方法
技术领域
本发明涉及BMC sel日志添加领域,具体涉及一种可实现自动快速添加BMC sel日志的方法。
背景技术
BMC(Baseboard Management Controller,基板管理控制器)支持行业标准的IPMI规范。该规范描述了已经内置到主板上的管理功能。这些功能包括:本地和远程诊断、控制台支持、配置管理、硬件管理和故障排除。
SEL是系统事件日志,当系统发生重启,BMC重启,电源,硬盘,风扇,CPU,Memory等发生故障解除都会生成日志。一般达到记录90%以上会记录一条warning的日志,100%时产生critical的日志。
BMC sdr中的Event_Log sensor,此功能是当事件日志设置为线性策略的时候,日志达到100%full的时候会生成一条critical的记录后将不再继续记录log,设置为循环测试时,日志将继续记录,测试工程师模拟此功能是否正常,需要耗时很久才能达到sel full的时候,耗时事件长,占用资源。
发明内容
为解决上述问题,本发明提供一种可自动快速添加BMC sel日志的方法,减少测试时间,提高测试效率。
本发明的技术方案是:一种自动快速添加BMC sel日志的方法,包括以下步骤:
将添加日志脚本拷贝到系统;
运行添加日志脚本进行日志添加;
当日志达到90%以上,系统记录warning日志;
当日志达到100%时,系统记录critical日志。
进一步地,添加日志脚本为shell脚本。
进一步地,添加日志脚本包括:
日志条数设置单元:用于设置需添加记录日志条数;
日志内容设置单元:用于设置所添加记录日志的日志内容;
日志添加单元:用于添加日志。
进一步地,添加日志脚本使用ipmitool命令实现日志添加。
进一步地,该方法适用于Linux系统。
本发明提供的自动快速添加BMC sel日志的方法,通过shell脚本实现日志添加,用户只需运行脚本,即可实现日志自动快速的添加,且用户可根据需要设置添加记录日志的条数以及需要添加日志的内容,减少了系统一直重启或者触发其他事件记录log的事件,大大的减少测试时间,提高测试效率。
附图说明
图1是本发明具体实施例方法流程示意图。
具体实施方式
下面结合附图并通过具体实施例对本发明进行详细阐述,以下实施例是对本发明的解释,而本发明并不局限于以下实施方式。
如图1所示,本发明提供的自动快速添加BMC sel日志的方法,包括以下步骤:
将添加日志脚本拷贝到系统;
运行添加日志脚本进行日志添加;
当日志达到90%以上,系统记录warning日志;
当日志达到100%时,系统记录critical日志。
本方法中,添加日志脚本由shell实现,并用ipmitool命令实现日志添加。
添加日志脚本具体包括:
日志条数设置单元:用于设置需添加记录日志条数;
日志内容设置单元:用于设置所添加记录日志的日志内容;
日志添加单元:用于添加日志。
本实施例的添加日志方法适用于Linux系统。
本实施例的添加日志脚本具体如下:
本发明通过使用脚本能够快速添加日志,减少了系统一直重启或者触发其他事件记录log的时间,大大的减少测试时间,提高测试效率。
以上公开的仅为本发明的优选实施方式,但本发明并非局限于此,任何本领域的技术人员能思之的没有创造性的变化,以及在不脱离本发明原理前提下所作的若干改进和润饰,都应落在本发明的保护范围内。

Claims (5)

1.一种自动快速添加BMC sel日志的方法,其特征在于,包括以下步骤:
将添加日志脚本拷贝到系统;
运行添加日志脚本进行日志添加;
当日志达到90%以上,系统记录warning日志;
当日志达到100%时,系统记录critical日志。
2.根据权利要求1所述的自动快速添加BMC sel日志的方法,其特征在于,添加日志脚本为shell脚本。
3.根据权利要求1或2所述的自动快速添加BMC sel日志的方法,
其特征在于,添加日志脚本包括:
日志条数设置单元:用于设置需添加记录日志条数;
日志内容设置单元:用于设置所添加记录日志的日志内容;
日志添加单元:用于添加日志。
4.根据权利要求3所述的自动快速添加BMC sel日志的方法,其特征在于,添加日志脚本使用ipmitool命令实现日志添加。
5.根据权利要求1、2或4所述的自动快速添加BMC sel日志的方法,其特征在于,该方法适用于Linux系统。
CN201711288883.0A 2017-12-07 2017-12-07 一种自动快速添加BMC sel日志的方法 Pending CN107861831A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711288883.0A CN107861831A (zh) 2017-12-07 2017-12-07 一种自动快速添加BMC sel日志的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711288883.0A CN107861831A (zh) 2017-12-07 2017-12-07 一种自动快速添加BMC sel日志的方法

Publications (1)

Publication Number Publication Date
CN107861831A true CN107861831A (zh) 2018-03-30

Family

ID=61705059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711288883.0A Pending CN107861831A (zh) 2017-12-07 2017-12-07 一种自动快速添加BMC sel日志的方法

Country Status (1)

Country Link
CN (1) CN107861831A (zh)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893261A (zh) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 一种自动化检验服务器bmc稳定性的方法
CN106909489A (zh) * 2017-02-25 2017-06-30 郑州云海信息技术有限公司 一种测试EventLog状态的方法及装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893261A (zh) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 一种自动化检验服务器bmc稳定性的方法
CN106909489A (zh) * 2017-02-25 2017-06-30 郑州云海信息技术有限公司 一种测试EventLog状态的方法及装置

Similar Documents

Publication Publication Date Title
TWI578233B (zh) 統一韌體管理系統、非揮發電腦可讀取媒體以及統一韌體管理方法
CN105938450B (zh) 自动除错信息收集的方法及系统
US9122501B1 (en) System and method for managing multiple bios default configurations
US20120304011A1 (en) Server and power supply test method
TWI522919B (zh) 自動地配置電腦系統中之基本輸入輸出系統效能設定檔的裝置、方法及非暫態電腦可讀取記錄媒體
EP2372521A2 (en) Remote direct storage access
US20150154092A1 (en) Bios maintenance method
US20120117429A1 (en) Baseboard management controller and memory error detection method of computing device utilized thereby
TWI632462B (zh) 開關裝置及偵測積體電路匯流排之方法
US20140095948A1 (en) Memory testing in a data processing system
TW201416853A (zh) 用以雲端測試及遠端監視積體電路裝置於電腦化系統之驗證的方法及其系統
TW201227341A (en) Remote management systems and methods for servers, and computer program products thereof
US8898345B2 (en) Out-of-band management of third party adapter configuration settings in a computing system
TWI512490B (zh) 擷取控制台訊息的系統及其方法及非暫態電腦可讀媒體
US10101782B2 (en) System and method for thermal control of an information handling system
US9239684B2 (en) Electronic device and method for testing redundant array of independent disks level
US20150169310A1 (en) Maintaining firmware
US10503489B1 (en) Updating firmware via a remote utility
CN109086192B (zh) 一种基于ipmi的板载sata硬盘点灯系统及方法
US20150149753A1 (en) Server and inspecting method thereof
US11182233B2 (en) Method for event log management of memory errors and server computer utilizing the same
CN107807791A (zh) 一种计算机硬盘序列绑定方法及系统
JP6583942B1 (ja) Bmc、判定方法及びbmcファームウェア
US20150040119A1 (en) Computer system and device driver installation method
US20090282416A1 (en) Vital product data collection during pre-standby and system initial program load

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: 20180330