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.
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.