Managing Files with the J-Web Interface
This section contains the following topics:
Cleaning Up Files
You can use the J-Web interface to rotate log files and delete unnecessary files on the services router. If you are running low on storage space, the file cleanup procedure quickly identifies files that can be deleted.
The file cleanup procedure performs the following tasks:
- Rotates log files—All information in the current log files is archived, and fresh log files are created.
- Deletes log files in /var/log—Any files that are not currently being written to are deleted.
- Deletes temporary files in /var/tmp—Any files that have not been accessed within two days are deleted.
- Deletes all crash files in /var/crash—Any core files that the device has written during an error are deleted.
- Deletes all software images (*.tgz files) in /var/sw/pkg—Any software images copied to this directory during software upgrades are deleted.
Figure 23 shows the Clean Up Files page.
Figure 23: Clean Up Files Page

To rotate log files and delete unnecessary files with the J-Web interface:
- In the J-Web interface, select Maintain>Files.
- In the Clean Up Files section, click Clean Up Files. The device rotates log files and identifies
the files that can be safely deleted.
The J-Web interface displays the files that you can delete and the amount of space that will be freed on the file system.
- Click one of the following buttons on the confirmation
page:
- To delete the files and return to the Files page, click OK.
- To cancel your entries and return to the list of files in the directory, click Cancel.
Downloading Files
You can use the J-Web interface to download a copy of an individual file from the services router. When you download a file, it is not deleted from the file system.
Figure 24 shows the J-Web page from which you can download log files.
Figure 24: Log Files Page (Download)

To download files with the J-Web interface:
- In the J-Web interface, select Maintain>Files.
- In the Download and Delete Files section, click
one of the following file types:
- Log Files—Lists the log files located in the /var/log directory on the device.
- Temporary Files—Lists the temporary files located in the /var/tmp directory on the device.
- Old Junos OS—Lists the software images located in the (*.tgz files) in the /var/sw/pkg directory on the device.
- Crash (Core) Files—Lists the
core files located in the /var/crash directory on the device.
The J-Web interface displays the files located in the directory.
- To download an individual file, click Download.
- Choose a location for the browser to save the file.
The file is downloaded.
Deleting Files
You can use the J-Web interface to delete an individual file from the services router. When you delete the file, it is permanently removed from the file system.
![]() | Caution: If you are unsure whether to delete a file from the device, we recommend using the Cleanup Files tool described in Cleaning Up Files. This tool determines which files can be safely deleted from the file system. |
Figure 25 shows the J-Web page on which you confirm the deletion of files.
Figure 25: Confirm File Delete Page

To delete files with the J-Web interface:
- In the J-Web interface, select Maintain>Files.
- In the Download and Delete Files section, click
one of the following file types:
- Log Files—Lists the log files located in the /var/log directory on the device.
- Temporary Files—Lists the temporary files located in the /var/tmp directory on the device.
- Old Junos OS—Lists the software images in the (*.tgz files) in the /var/sw/pkg directory on the device.
- Crash (Core) Files—Lists the core files located in the /var/crash directory on the device.
The J-Web interface displays the files located in the directory.
- Check the box next to each file you plan to delete.
- Click Delete.
The J-Web interface displays the files you can delete and the amount of space that will be freed on the file system.
- Click one of the following buttons on the confirmation
page:
- To delete the files and return to the Files page, click OK.
- To cancel your entries and return to the list of files in the directory, click Cancel.
Deleting the Backup Software Image
Junos OS keeps a backup image of the software that was previously installed so that you can downgrade to that version of the software if necessary. You can use the J-Web interface to delete this backup image. If you delete this image, you cannot downgrade to this particular version of the software.
To delete the backup software image:
- In the J-Web interface, select Maintain>Files.
- In the Delete Backup Junos Package section, review the backup image information listed.
- To delete the backup image, click the Delete backup Junos package link.
- Click one of the following buttons on the confirmation
page:
- To delete the backup image and return to the Files page, click OK.
- To cancel the deletion of the backup image and return to the Files page, click Cancel.
Hide Navigation Pane
Show Navigation Pane
Download
SHA1
