The invention discloses a method for automatically and quickly add BMC sel log, which comprises the following steps: adding script copy to the system log log log; add script added; when the log reaches above 90%, the system records the warning log; when the log reaches 100%, the system records the critical log. The invention uses shell script to achieve log add, users only need to run the script, you can achieve log automatically and quickly added, and the user can set the number of add log and log to add content according to the needs, reduce the system has been restarted or trigger other events recorded the events of log, greatly reduce test time and improve test efficiency.
【技术实现步骤摘要】
一种自动快速添加BMCsel日志的方法
本专利技术涉及BMCsel日志添加领域,具体涉及一种可实现自动快速添加BMCsel日志的方法。
技术介绍
BMC(BaseboardManagementController,基板管理控制器)支持行业标准的IPMI规范。该规范描述了已经内置到主板上的管理功能。这些功能包括:本地和远程诊断、控制台支持、配置管理、硬件管理和故障排除。SEL是系统事件日志,当系统发生重启,BMC重启,电源,硬盘,风扇,CPU,Memory等发生故障解除都会生成日志。一般达到记录90%以上会记录一条warning的日志,100%时产生critical的日志。BMCsdr中的Event_Logsensor,此功能是当事件日志设置为线性策略的时候,日志达到100%full的时候会生成一条critical的记录后将不再继续记录log,设置为循环测试时,日志将继续记录,测试工程师模拟此功能是否正常,需要耗时很久才能达到selfull的时候,耗时事件长,占用资源。
技术实现思路
为解决上述问题,本专利技术提供一种可自动快速添加BMCsel日志的方法,减少测试时间,提高测试效率。本专利技术的技术方案是:一种自动快速添加BMCsel日志的方法,包括以下步骤:将添加日志脚本拷贝到系统;运行添加日志脚本进行日志添加;当日志达到90%以上,系统记录warning日志;当日志达到100%时,系统记录critical日志。进一步地,添加日志脚本为shell脚本。进一步地,添加日志脚本包括:日志条数设置单元:用于设置需添加记录日志条数;日志内容设置单元:用于设置所添加记录 ...
【技术保护点】
一种自动快速添加BMC sel日志的方法,其特征在于,包括以下步骤:将添加日志脚本拷贝到系统;运行添加日志脚本进行日志添加;当日志达到90%以上,系统记录warning日志;当日志达到100%时,系统记录critical日志。
【技术特征摘要】
1.一种自动快速添加BMCsel日志的方法,其特征在于,包括以下步骤:将添加日志脚本拷贝到系统;运行添加日志脚本进行日志添加;当日志达到90%以上,系统记录warning日志;当日志达到100%时,系统记录critical日志。2.根据权利要求1所述的自动快速添加BMCsel日志的方法,其特征在于,添加日志脚本为shell脚本。3.根据权利要求1或2所述的自动快速添加BMCsel日志的方...
【专利技术属性】
技术研发人员:吴培琴,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。