Clear Log - 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

clear log

Syntax
Release Information
Description
Options
Required Privilege
Level
Related
Documentation
List of Sample Output
Output Fields
clear log
clear log
722
®
OS for EX Series Ethernet Switches, Release 10.3
clear log filename
<all>
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Remove contents of a log file.
filename
—Name of the specific log file to truncate.
—(Optional) Truncate the specified log file and delete all archived versions of it.
all
clear
show log on page 852
clear log on page 722
See file list for an explanation of output fields.
The following sample commands list log file information, clear the contents of a log file,
and then display the updated log file information:
user@host> file list lcc0-re0:/var/log/sampled detail
lcc0-re0:
--------------------------------------------------------------------------
-rw-r-----
1 root
wheel
total 1
user@host> clear log lcc0-re0:sampled
lcc0-re0:
--------------------------------------------------------------------------
user@host> file list lcc0-re0:/var/log/sampled detail
lcc0-re0:
--------------------------------------------------------------------------
-rw-r-----
1 root
wheel
total 1
26450 Jun 23 18:47 /var/log/sampled
57 Sep 15 03:44 /var/log/sampled
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

Table of Contents