Configuring the Hardware Management Agent Logging Level
To configure the logging level, modify the hwagentd_log_levels
parameter in the hwmgmtd.conf file. There are two ways to configure the
logging level. The easiest way to configure the logging level is to set the
hwagentd_log_levels parameter to one of the following levels.
|
|
ERROR
|
Any error messages generated by the Hardware Management Agent
|
WARNING
|
Any error and warning messages generated by the Hardware Management Agent
|
INFO
|
Any error and warning messages generated by the Hardware Management Agent and informative
messages about normal functioning
|
|
Alternatively, you can set the logging level with a finer level of granularity by using the
bit flags from the following table.
Note -
It is recommended to use the logging levels above. The following options are for advanced
troubleshooting.
|
|
|
EMERG
|
0x0001
|
Information about the system being unusable
|
ALARM
|
0x0002
|
Information about any immediate action that must be taken
|
CRIT
|
0x0004
|
Information related to the Hardware Management Agent either not starting or stopping because
of critical conditions
|
ERROR
|
0x0008
|
Information about any error messages generated by the Hardware Management Agent
|
WARNING
|
0x0010
|
Information about any error and warning messages generated by the Hardware Management
Agent
|
NOTICE
|
0x0020
|
Information related to normal functioning
|
INFO
|
0x0040
|
Information about any error and warning messages generated by the Hardware Management Agent
and informative messages about normal functioning
|
DEBUG
|
0x0080
|
Verbose debug-level messages, useful in troubleshooting
|
TRACE
|
0x0100
|
Highly verbose debug-level messages, useful in troubleshooting
|
|
Note -
levels DEBUG and TRACE generate a lot of detailed messages and are designed for
troubleshooting. These levels are not recommended for production usage.
For example, when you want to set all logging levels between EMERG and NOTICE, the bit code
values of all the required levels must be added and then converted to a decimal value. Referring to
preceding table, the addition would be as follows:
0x0001 + 0x0002 + 0x0004 + 0x0008 + 0x0010 + 0x0020 = 0x003f
Converting this hexadecimal value to decimal equals 63, which is the desired log level. This
is the decimal number that should be assigned to the hwagentd_log_levels
parameter in the hwmgmtd.conf file.