Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use mcelog

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to use mcelog, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Start the mcelog method manually:

# mcelog-daemon

Run mcelog in daemon mode, waiting for errors from the kernel.

The backend service starts mcelog:

RHEL 7:

Systemctl start mcelog

Systemctl enable mcelog

RHEL 6:

Service mcelogd start

Chkconfig mcelogd on

View the mcelog log:

# vim / var/log/mcelog

Check to see if the mcelog daemon detects an error message:

# mcelog-client

Query a currently running mcelog daemon for errors

Parse the mce output of a system exception:

# mcelog-- ascii < file.log

Or:

# mcelog-ascii-file file.log

Decode machine check ASCII output from kernel logs

An example of exception output is as follows:

[Hardware Error]: CPU 12: Machine Check Exception: 5 Bank 22: be200000000c110a

[Hardware Error]: RIP! INEXACT! 10: {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'

Remove the preceding "[Hardware Error]:" from the file.log content:

CPU 12: Machine Check Exception: 5 Bank 22: be200000000c110a

RIP! INEXACT! 10: {mwait_idle+0x77/0xd0}

TSC 103e7072fa77de ADDR c5f17ee00 MISC b0fe435602184086

PROCESSOR 0:306e4 TIME 1462390781 SOCKET 0 APIC 1

The above is all the contents of this article "how to use mcelog". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report