Juniper J-Series Administration Manual page 183

Juniper networks router administration guide
Hide thumbs Also See for J-Series:
Table of Contents

Advertisement

Sending System Log Messages to a User Terminal
To direct system log messages to the terminal session of one or more specific users
(or all users) when they are logged into the local Routing Engine, specify one or more
JUNOS usernames. Separate multiple values with spaces, or use the asterisk (*) to
indicate all users who are logged into the local Routing Engine. For the list of logging
facilities and severity levels, see Table 81 on page 157 and Table 82 on page 158.
The procedure provided in this section sends any critical messages to the terminal
of the sample user
To send messages to a user terminal:
1.
2.
3.
Table 85: Sending Messages to a User Terminal
Task
Navigate to the Syslog level
in the configuration
hierarchy.
Send all
critical
messages to
the user
frank
.
Archiving System Logs
By default, the JUNOS logging utility stops writing messages to a log file when the
file reaches 128 KB in size. It closes the file and adds a numerical suffix, then opens
and directs messages to a new file with the original name. By default, the logging
utility creates up to 10 files before it begins overwriting the contents of the oldest
file. The logging utility by default also limits the users who can read log files to the
root user and users who have the JUNOS maintenance permission.
To enable all users to read log files, include the
system syslog archive]
the
system syslog file filename]
frank
, if he is logged in.
Navigate to the top of the configuration hierarchy in either the J-Web or CLI
configuration editor.
Perform the configuration tasks described in Table 85 on page 161.
If you are finished configuring the network, commit the configuration.
J-Web Configuration Editor
1.
In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
2.
Next to System, click Configure or Edit.
3.
Next to Syslog, click Configure or Edit.
1.
Next to User, click Add new entry.
2.
In the User name box, type
3.
Next to Contents, click Add new entry.
4.
In the Facility list, select any.
5.
In the Level list, select critical.
hierarchy level. To restore the default permissions, include
no-world-readable
statement. You can include the
hierarchy level to configure the number of files, file size,
Configuring System Log Messages with a Configuration Editor
Chapter 8: Monitoring Events and Managing System Log Files
CLI Configuration Editor
From the
enter
edit system syslog
Set the filename and the facility
and severity level:
.
frank
set user frank any critical
world-readable
archive
hierarchy level,
[edit]
statement at the
[edit
statement at the
[edit
161

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents