Download Initial Configuration and Platform Troubleshooting

Transcript
20
Chapter 1
Initial Configuration and Platform Troubleshooting
Task 4: Configure Syslog Parameters
Now that your user accounts are configured and you have confirmed that they work, you can
move on to adjusting the default syslog parameters. The default syslog configuration on an
M-series router will be similar to this example:
[edit]
lab@r1# show system syslog
user * {
any emergency;
}
file messages {
any notice;
authorization info;
The default syslog settings will display emergency-level messages for all facility classes to any
user that is logged in, and will log at the notice and info levels to the file messages for all facility
classes and for the authorization class, respectively. The default archive settings will allow up
to ten 128KB files that are not world-readable.
In this example, your goal is to modify the default syslog parameters to achieve the following
criteria:
Place authorization messages into a log file named auth
Permit five copies of the auth file, each no larger than 5MB
The commands used to meet these requirements are as follows:
[edit system syslog]
lab@r1# delete file messages authorization
[edit system syslog]
lab@r1# set file auth authorization info
[edit system syslog]
lab@r1# set file auth archive files 5 size 5m
And here is the modified syslog stanza:
[edit system syslog]
lab@r1# show
user * {
any emergency;
}