Configuring System Logging Differently on Each Platform
We recommend that all platforms in a routing matrix use the same configuration, which implies that you include system logging configuration statements on the TX Matrix platform only. In rare circumstances, however, you might choose to log different messages on different platforms. For example, if one platform in the routing matrix is experiencing problems, a Juniper Networks support representative might instruct you to log messages with severity
debugon that one platform.To configure platforms separately, include system logging configuration statements in the appropriate groups at the
[edit groups]hierarchy level on the TX Matrix platform:
- To configure settings that apply to the TX Matrix platform but not the T640 routing nodes, include them in the
re0andre1configuration groups.- To configure settings that apply to particular T640 routing nodes, include them in the
lccn-re0andlccn-re1configuration groups, wherenis the line-card chassis (LCC) index number of the routing node.When you use configuration groups, do not issue CLI configuration-mode commands on the TX Matrix platform that affect the
[edit system syslog]hierarchy level. The resulting statements overwrite the statements defined in configuration groups and apply to the T640 routing nodes also. (We further recommend that you do not issue CLI configuration-mode commands on the T640 routing nodes at any time.)For more information about the configuration groups for a routing matrix, see the chapter about configuration groups in the JUNOS System Basics Configuration Guide.
The following sample statements configure the
/var/log/messagesfiles on three platforms to include different sets of messages:
- On the TX Matrix platform, local messages with severity
infoand higher from all facilities. The file does not include messages from the T640 routing nodes, because thehost scc-masterstatement disables message forwarding.- On the T640 routing node designated
LCC0, messages with severitydebugfrom all facilities.- On the T640 routing node designated
LCC1, messages with severitynoticefrom all facilities.[edit groups]re0 {system {syslog {file messages {any info;}host scc-master {any none;}}}}re1 {...same statements as forre0 ...}lcc0-re0 {system {syslog {file messages {any debug;}}}}lcc0-re1 {...same statements as forlcc0-re0 ...}lcc1-re0 {system {syslog {file messages {any notice;}}}}lcc0-re1 {...same statements as forlcc1-re0 ...}