Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install mcelog package to host OS; log machine check exceptions (MCE) to syslog #3158

Merged
merged 2 commits into from
Jul 17, 2019
Merged

Conversation

jleveque
Copy link
Contributor

- What I did

  • Install mcelog package to host Debian OS. This installs a daemon which checks for machine check exceptions (MCE) and logs them to syslog.

- How to verify it

Check syslog for messages from the mcelog daemon (example below)

Jul 15 19:30:39 sonic mcelog[445]: Starting Machine Check Exceptions decoder: mcelog.
Jul 15 19:30:39 sonic mcelog: failed to prefill DIMM database from DMI data
Jul 15 19:30:39 sonic mcelog: warning: 32 bytes ignored in each record
Jul 15 19:30:39 sonic mcelog: consider an update
Jul 15 19:30:39 sonic mcelog: failed to prefill DIMM database from DMI data
Jul 15 19:30:39 sonic mcelog: warning: 32 bytes ignored in each record
Jul 15 19:30:39 sonic mcelog: consider an update

This commit should cherry-pick cleanly into the 201904 branch, but I will need to open a similar PR against the 201811 branch due to conflicts.

@jleveque
Copy link
Contributor Author

Retest vs please

1 similar comment
@jleveque
Copy link
Contributor Author

Retest vs please

@lguohan
Copy link
Collaborator

lguohan commented Jul 16, 2019

I am not sure the mcelog is logged into the syslog.

@jleveque
Copy link
Contributor Author

jleveque commented Jul 16, 2019

@lguohan: Yes, it logs to syslog. I have verified this. By default, it logs to /var/log/mcelog, but with our rsyslog configuration, it is instead directed to /var/log/syslog.

@lguohan
Copy link
Collaborator

lguohan commented Jul 16, 2019

I installed this on device, I found the errors are still in /var/log/mcelog.

@jleveque
Copy link
Contributor Author

@lguohan: That's strange. I have an image currently running, and the messages are written to syslog. Did you install the package manually or build and install an image with this PR?

@jleveque
Copy link
Contributor Author

Gotcha. I was unaware that mcelog logs to two different location by default. All messages go to syslog except MCE messages which, by default, get logged to mcelog. Commit dda1326 configures mcelog to log MCE messages to syslog, as well.

@lguohan lguohan merged commit fa8b22a into sonic-net:master Jul 17, 2019
@jleveque jleveque deleted the add_mcelog branch July 17, 2019 17:16
mssonicbld added a commit that referenced this pull request Feb 9, 2024
…atically (#18078)

#### Why I did it
src/sonic-utilities
```
* 81c5349f - (HEAD -> master, origin/master, origin/HEAD) [chassis] fix show bgp summary when no neighbors are present on one ASIC (#3158) (10 hours ago) [Arvindsrinivasan Lakshmi Narasimhan]
```
#### How I did it
#### How to verify it
#### Description for the changelog
mssonicbld added a commit that referenced this pull request Feb 15, 2024
…atically (#18081)

#### Why I did it
src/sonic-utilities
```
* b2125761 - (HEAD -> 202311, origin/202311) [chassis] fix show bgp summary when no neighbors are present on one ASIC (#3158) (2 days ago) [Arvindsrinivasan Lakshmi Narasimhan]
* 54595c1e - [202311]Fix the sfputil treats page number as decimal instead of hexadecimal (#3153) (#3160) (5 days ago) [Sudharsan Dhamal Gopalarathnam]
```
#### How I did it
#### How to verify it
#### Description for the changelog
sonic-otn pushed a commit to Weitang-Zheng/sonic-buildimage that referenced this pull request Mar 11, 2024
…atically (sonic-net#18078)

#### Why I did it
src/sonic-utilities
```
* 81c5349f - (HEAD -> master, origin/master, origin/HEAD) [chassis] fix show bgp summary when no neighbors are present on one ASIC (sonic-net#3158) (10 hours ago) [Arvindsrinivasan Lakshmi Narasimhan]
```
#### How I did it
#### How to verify it
#### Description for the changelog
saksarav-nokia pushed a commit to saksarav-nokia/sonic-buildimage that referenced this pull request Mar 12, 2024
…atically (sonic-net#18078)

#### Why I did it
src/sonic-utilities
```
* 81c5349f - (HEAD -> master, origin/master, origin/HEAD) [chassis] fix show bgp summary when no neighbors are present on one ASIC (sonic-net#3158) (10 hours ago) [Arvindsrinivasan Lakshmi Narasimhan]
```
#### How I did it
#### How to verify it
#### Description for the changelog
mssonicbld added a commit that referenced this pull request Apr 27, 2024
…atically (#18810)

#### Why I did it
src/sonic-utilities
```
* 428a5d99 - (HEAD -> 202305, origin/202305) [chassis] fix show bgp summary when no neighbors are present on one ASIC (#3158) (25 hours ago) [Arvindsrinivasan Lakshmi Narasimhan]
```
#### How I did it
#### How to verify it
#### Description for the changelog
mssonicbld added a commit that referenced this pull request Jun 6, 2024
…lly (#19203)

#### Why I did it
src/sonic-swss
```
* 8f333b69 - (HEAD -> master, origin/master, origin/HEAD, origin/202405) [subnet decap] Support decap rule generation based on T0 VIP route (#3183) (22 hours ago) [Longxiang Lyu]
* 9bcb9b6e - Fixing appl_db FABRIC_MONITOR notification issue. (#3176) (25 hours ago) [jfeng-arista]
* fff544e6 - Rotate record file before writing new log. (#3158) (29 hours ago) [mint570]
* 80f52079 - Add SWSS support for link event damping feature (#2933) (29 hours ago) [Roy Yi]
* b3ebfc46 - [muxorch] Using bulker to program routes/neighbors during switchover (#3148) (29 hours ago) [Nikola Dancejic]
```
#### How I did it
#### How to verify it
#### Description for the changelog
mssonicbld added a commit that referenced this pull request Jul 13, 2024
…lly (#19554)

#### Why I did it
src/sonic-swss
```
* d3073b7c - (HEAD -> 202405, origin/202405) [muxorch] Fixing bug with updateRoute and mux neighbors (#3187) (19 hours ago) [Nikola Dancejic]
* b16d6b2a - ADD VOQ COUNTERS(SAI_SWITCH_STAT_PACKET_INTEGRITY_DROP, SAI_QUEUE_ST…T_CREDIT_WD_DELETED_PACKETS) support for VOQ/Fabric switches (#3152) (19 hours ago) [saksarav-nokia]
* 12a95e57 - Revamp module build script to make it work for 5.15 on Ubuntu 20.04 (#3212) (19 hours ago) [Saikrishna Arcot]
* 87cf38e0 - Fix in switchorch: unsupported attribute causes skipping of processing the rest of configurations (#3209) (19 hours ago) [Amir]
* 8f333b69 - [subnet decap] Support decap rule generation based on T0 VIP route (#3183) (5 weeks ago) [Longxiang Lyu]
* 9bcb9b6e - Fixing appl_db FABRIC_MONITOR notification issue. (#3176) (5 weeks ago) [jfeng-arista]
* fff544e6 - Rotate record file before writing new log. (#3158) (5 weeks ago) [mint570]
* 80f52079 - Add SWSS support for link event damping feature (#2933) (5 weeks ago) [Roy Yi]
* b3ebfc46 - [muxorch] Using bulker to program routes/neighbors during switchover (#3148) (5 weeks ago) [Nikola Dancejic]
```
#### How I did it
#### How to verify it
#### Description for the changelog
arun1355492 pushed a commit to arun1355492/sonic-buildimage that referenced this pull request Jul 26, 2024
…lly (sonic-net#19203)

#### Why I did it
src/sonic-swss
```
* 8f333b69 - (HEAD -> master, origin/master, origin/HEAD, origin/202405) [subnet decap] Support decap rule generation based on T0 VIP route (sonic-net#3183) (22 hours ago) [Longxiang Lyu]
* 9bcb9b6e - Fixing appl_db FABRIC_MONITOR notification issue. (sonic-net#3176) (25 hours ago) [jfeng-arista]
* fff544e6 - Rotate record file before writing new log. (sonic-net#3158) (29 hours ago) [mint570]
* 80f52079 - Add SWSS support for link event damping feature (sonic-net#2933) (29 hours ago) [Roy Yi]
* b3ebfc46 - [muxorch] Using bulker to program routes/neighbors during switchover (sonic-net#3148) (29 hours ago) [Nikola Dancejic]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants