Archive (All System Log Files) - Juniper JUNOS OS 10.3 - SOFTWARE Manual

For ex series ethernet switches
Hide thumbs Also See for JUNOS OS 10.3 - SOFTWARE:
Table of Contents

Advertisement

Complete Software Guide for Junos

archive (All System Log Files)

Syntax
Hierarchy Level
Release Information
Description
Options
Required Privilege
Level
Related
Documentation
668
®
OS for EX Series Ethernet Switches, Release 10.3
archive <files number> <size size <world-readable | no-world-readable>;
[edit system syslog]
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Configure archiving properties for all system log files.
files number
—Maximum number of archived log files to retain. When the Junos logging
utility has written a defined maximum amount of data to a log file
the file, compresses it, and renames it to
determined by the
size
writes to a new file called
file is renamed to
logfile.0.gz
and renamed
logfile.0.gz
files in this manner. Once the maximum number of archive files exists, each time the
active log file reaches the maximum size, the contents of the oldest archive file are
lost (overwritten by the next oldest file).
Range: 1 through 1000
Default: 10 files
—Maximum amount of data that the Junos logging utility writes to a log file
size size
before archiving it (closing it, compressing it, and changing its name to
The utility then opens and writes to a new file called
Syntax:
to specify the number of kilobytes,
xk
for the number of gigabytes
Range: 64 KB through 1 GB
Default: 128 KB for J Series routers; 1 MB for M Series, MX Series, and T Series routers;
10 MB for TX Matrix and TX Matrix Plus routers
world-readable | no-world-readable
files, or restrict the permission only to the
permission.
maintenance
Default:
no-world-readable
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Specifying Log File Size, Number, and Archiving Properties
logfile.0.gz
statement at this hierarchy level). The utility then opens and
. When the new file reaches the maximum size, the
logfile
, and the new file is closed, compressed,
logfile.1.gz
. By default, the logging facility creates up to ten archive
for the number of megabytes, or
xm
—Grant all users permission to read archived log
root
user and users who have the Junos
, it closes
logfile
(the amount of data is
logfile.0.gz
.
logfile
Copyright © 2010, Juniper Networks, Inc.
logfile
).
xg

Advertisement

Table of Contents
loading

Table of Contents