Managing Accounting Files - Juniper J-Series Administration Manual

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

Advertisement

J-series
Services Router Administration Guide
To rotate log files and delete unnecessary files with the CLI:
1.
2.
3.
NOTE: You can issue the
the list of files that can be deleted with the
without actually deleting the files.

Managing Accounting Files

If you configure your system to capture accounting data in log files, set the location
for accounting files to the DRAM.
The default location for accounting files is the
flash. The
flash. We recommend that you use the
configured on your system.
To store accounting log files in DRAM instead of the compact flash:
1.
2.
3.
202
Managing Accounting Files
Rotates log files—All information in the current log files is archived, old archives
are deleted, and fresh log files are created.
Deletes log files in
/var/log
deleted.
Deletes temporary files in
two days are deleted.
Deletes all crash files in
/var/crash
during an error are deleted.
Deletes all software images (
copied to this directory during software upgrades are deleted.
Enter operational mode in the CLI.
To rotate log files and identify the files that can be safely deleted, enter the
following command:
user@host> request system storage cleanup
The router rotates log files and displays the files that you can delete.
Enter
at the prompt to delete the files.
yes
request system storage cleanup dry-run
option minimizes the read/write traffic to your compact
nonpersistent
Enter the configuration mode in the CLI.
To create an accounting data log file in DRAM, enter the following command,
replacing filename with the name of the file:
user@host> edit accounting-options file filename
To store accounting log files in the DRAM file, enter the following command:
—Any files that are not currently being written to are
/var/tmp
—Any files that have not been accessed within
—Any core files that the router has written
files) in
*.tgz
/var/sw/pkg
request system storage cleanup
cfs/var/log
nonpersistent
option for all accounting files
—Any software images
command to review
command,
directory on the compact

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents