Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

request system storage cleanup (Junos OS Evolved)

Syntax

Description

Use this command to free storage space on the router or switch by rotating log files and proposing a list of files for deletion.

The Junos OS Evolved implementation of the request system storage cleanup command is slightly different from the implementation on Junos OS:

  • The system prompts you to specify the dry-run option:

  • When you issue the request system storage cleanup command, Junos OS Evolved displays the types of files to be deleted. See the Sample Output section below for an example.

  • Prior to Junos OS Evolved Release 20.1R1, the command cleans up any ISO files on the system, rotates system log files, and clears trace files. It does not remove user-created files. Starting in Junos OS Evolved Release 20.1R1, this command does not remove ISO images from the system. It removes all core files, log files from /var/log/, and all /var/log/* files. To remove old images from the device, use the request system software delete command.

  • In Junos OS Evolved, the system computes the available space and emits o/p on console for reference.

In Junos OS Evolved, the request system storage cleanup | display xml rpc command displays different XML tags for different file types. In Junos OS, the command displays only the file tag for all types of files. For more information about the differences between Junos OS and Junos OS Evolved, see How Junos OS Evolved Differs from Junos OS.

Options

dry-run

(Prompted if not specified) List the files proposed for deletion (without deleting the files).

force-deep

(Optional) Deep clean all temporary files and rotate logs. This option cleans up all the user-created files under the /tmp and /var/tmp directories.

no-confirm

(Optional) Do not ask for confirmation before doing the cleanup.

Additional Information

If logging is configured and being used, the dry-run option rotates the log files. In that case, the output displays the message “Currently rotating log files, please wait”. If no logging is currently under way, the output displays only a list of files to delete.

Required Privilege Level

maintenance

Sample Output

request system storage cleanup (Junos OS Evolved)

request system storage cleanup dry-run (Junos OS Evolved)

request system storage cleanup force-deep (Junos OS Evolved)

Release Information

Command introduced in Junos OS Evolved Release 20.4R2.