Archiving System Logs; Disabling System Logs; Accessing Remote Devices With The Cli - Juniper J2300 User Manual

J-series services router
Hide thumbs Also See for J2300:
Table of Contents

Advertisement

J-series™ Services Router User Guide
Table 66: Sending Messages to a User Terminal
Task
Navigate to the System 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]
no-world-readable
syslog file filename ]
permissions for the specified log file. For configuration details, see the information
about archiving log files in the JUNOS System Basics Configuration Guide.

Disabling System Logs

To disable logging of the messages from a facility, use the
statement. This statement is useful when, for example, you want to log messages
of the same severity level from all but a few facilities. Instead of including a
configuration statement for each facility you want to log, you can configure
the
not want to log. For configuration details, see the information about disabling
logging in the JUNOS System Basics Configuration Guide.

Accessing Remote Devices with the CLI

This section contains the following topics:
194
Accessing Remote Devices with the CLI
J-Web Configuration Editor
In the configuration editor hierarchy,
select System>Syslog.
1.
Next to User, click Add new entry.
2.
In the User name box, type frank.
3.
Next to Contents, click Add new
entry.
4.
In the Facility drop-down menu,
select any.
5.
In the Level drop-down menu,
select critical.
hierarchy level. To restore the default permissions, include the
statement. You can include the
hierarchy level to configure the number of files, file size, and
statement and then a
any level
CLI Configuration Editor
From the top of the configuration
hierarchy enter
edit system syslog
Set the filename and the facility and
severity level:
set user frank any critical
world-readable
statement at the
archive
facility none
statement for each facility you do
facility none
statement at the
[edit
[edit system
configuration

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

J2350J2320J4300J6300J6350J4350

Table of Contents