request system storage cleanup
Syntax
request system storage cleanup <dry-run>
Syntax (EX Series
Switch)
request system storage cleanup
<all-members>
<dry-run>
<local>
<member member-id>
Release Information
Command introduced in Junos OS Release 7.4.
dry-run
option introduced in Junos OS Release 7.6.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Description
Free storage space on the router or switch by rotating log files and proposing a list of files
for deletion. User input is required for file deletion.
Options
all-members
—(EX4200 switches only) (Optional) Delete files on all members of the
Virtual Chassis configuration.
dry-run
—(Optional) List files proposed for deletion (without deleting them).
local
—(EX4200 switches only) (Optional) Delete files on the local Virtual Chassis member.
member
member-id
—(EX4200 switches only) (Optional) Delete files on the specified
member of the Virtual Chassis configuration. Replace
member-id
with a value from
0 through 9.
Additional Information
If logging is configured and being used, the
dry-run
option will rotate the log files. In that
case, the output displays the message “Currently rotating log files, please wait.” If no
logging is currently underway, the output displays only a list of files to delete.
Required Privilege
Level
maintenance
List of Sample Output
request system storage cleanup dry-run on page 263
request system storage cleanup on page 264
Output Fields
When you enter this command, you are provided feedback on the status of your request.
request system
storage cleanup
dry-run
user@host>
request system storage cleanup dry-run
Currently rotating log files, please wait.
This operation can take up to a minute.
request system
storage cleanup
dry-run
List of files to delete:
Size Date Name
11.4K Mar 8 15:00 /var/log/messages.1.gz
7245B Feb 5 15:00 /var/log/messages.3.gz
11.8K Feb 22 13:00 /var/log/messages.2.gz
3926B Mar 16 13:57 /var/log/messages.0.gz
3962B Feb 22 12:47 /var/log/sampled.1.gz
4146B Mar 8 12:20 /var/log/sampled.0.gz
263
Copyright © 2010, Juniper Networks, Inc.
Chapter 17: Operational Mode Commands for System Setup
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...