Description

This article provides information on how to enable message logging on an EX device.

Symptoms

By default, on EX switches, message logging is enabled. However, when the default configuration is mistakenly deleted, the switch will not log any messages/events in the system and can be suspected as a system issue.

Solution

The configuration for message logging was deleted. There are no messages files being created under the /var/log directory.

Use the following configuration command to enable/disable message logging:

Via the configuration mode ( root# ):

set/delete system syslog file messages any notice
set/delete  system syslog file messages authorization info

Modification History

2020-08-06: Added related link to KB31181 [juniper.net]

Related Information