小编给大家分享一下mcelog怎么用,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
手动启动mcelog方法:
# mcelog --daemon
Run mcelog in daemon mode, waiting for errors from the kernel.
后台服务启动mcelog:
RHEL 7:
systemctl start mcelog
systemctl enable mcelog
RHEL 6:
service mcelogd start
chkconfig mcelogd on
查看mcelog日志:
# vim /var/log/mcelog
查看mcelog守护进程是否检测到错误信息:
# mcelog --client
Query a currently running mcelog daemon for errors
解析系统异常时的mce输出:
# mcelog --ascii < file.log
or:
# mcelog --ascii --file file.log
Decode machine check ASCII output from kernel logs
异常输出内容示例如下:
[Hardware Error]: CPU 12: Machine Check Exception: 5 Bank 22: be200000000c110a
[Hardware Error]: RIP !INEXACT! 10:<ffffffff81014527> {mwait_idle+0x77/0xd0}
[Hardware Error]: TSC 103e7072fa77de ADDR c5f17ee00 MISC b0fe435602184086
[Hardware Error]: PROCESSOR 0:306e4 TIME 1462390781 SOCKET 0 APIC 1
[Hardware Error]: Run the above through 'mcelog --ascii'
file.log内容要去掉前面的“[Hardware Error]: ”:
CPU 12: Machine Check Exception: 5 Bank 22: be200000000c110a
RIP !INEXACT! 10:<ffffffff81014527> {mwait_idle+0x77/0xd0}
TSC 103e7072fa77de ADDR c5f17ee00 MISC b0fe435602184086
PROCESSOR 0:306e4 TIME 1462390781 SOCKET 0 APIC 1
以上是“mcelog怎么用”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。