Thursday, October 28, 2021

Configure Kernel's error message in console

Stop kernel flooding your console with warning message:

--

First Display current level :

sysctl kernel.printk

--

Set it using:

sysctl -w kernel.printk="2 4 1 7"

--

  • CUR = current severity level; only messages more important than this level are printed
  • DEF = default severity level assigned to messages with no level
  • MIN = minimum allowable CUR
  • BTDEF = boot-time default CUR

https://en.wikipedia.org/wiki/Syslog#Severity_level


man klogctl explains the levels.

No comments:

Post a Comment