Description

In certain environments, expected hardware message logs from the LCMD, such as "fan speed" in /var/log/messages. LCMD logs are generated under the user facility at an info severity level if the syslog configuration is set explicitly to capture messages from that facility. When user any; is configured for file messages

Symptoms

The LCMD is responsible for monitoring and managing hardware components such as fans, power modules, and other environmental aspects of the system. It periodically logs informational messages, including fan speed, using the user syslog facility. For example, the following log entries may appear in the system message logs:

 

Apr 29 11:48:20.466 2025 <device> lcmd[26835]: LCMD_FAN_SET_SPD: FAN: Set Speed -> [ Slot = 0, Fanid = 1, Speed = 3720, PWM = 0xE88 ]

 Apr 29 11:48:20.467 2025 <device> lcmd[26835]: LCMD_FAN_SET_SPD: FAN: Set Speed -> [ Slot = 0, Fanid = 2, Speed = 3720, PWM = 0xE88 ]

 Apr 29 11:48:20.468 2025 <device> lcmd[26835]: LCMD_FAN_SET_SPD: FAN: Set Speed -> [ Slot = 0, Fanid = 3, Speed = 3720, PWM = 0xE88 ]

 

By default, such messages may not appear in the system log files if the syslog configuration does not explicitly include "user any" under the corresponding syslog configuration. This is because many systems are configured to log messages only at INFO severity or higher, while LCMD logs are often generated at the info level.

 

file messages {

 any notice;

 authorization info;

  user any;

}

Solution

The log message observed is purely informational and does not indicate any actual issue with the fan.

 

Logs seen by additional config for messages file with “user any” knob.

 

user@lab-mx1> show configuration | compare rollback 1

[edit system syslog file messages]

-    user any;

 

After removing the configuration the logs disappeared.

Modification History

2025-04-29 : Article Created