Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

Managing Log, Temporary, and Crash Files on the Switch (J-Web Procedure)

Note: This topic applies only to the J-Web Application package.

You can use the J-Web interface to rotate log files and delete unnecessary log, temporary, and crash files on the switch.

  1. Cleaning Up Files
  2. Downloading Files
  3. Deleting Files

Cleaning Up Files

If you are running low on storage space, use the file cleanup procedure to quickly identify files to delete.

The file cleanup procedure performs the following tasks:

  • Rotates log files—Archives the current log files, and creates fresh log files.
  • Deletes log files in /var/log—Deletes files that are not currently being written to.
  • Deletes temporary files in /var/tmp—Deletes files that have not been accessed within two days.
  • Deletes all crash files in /var/crash—Deletes core files that the switch has written during an error.

To rotate log files and delete unnecessary files with the J-Web interface:

  1. Select Maintain > Files.
  2. In the Clean Up Files section, click Clean Up Files. The switching platform rotates log files and identifies 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.

  3. Click one of the following options:
    • 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 log, temporary, or crash file from the switching platform. When you download a file, it is not deleted from the file system.

To download files with the J-Web interface:

  1. In the J-Web interface, select Maintain > Files.
  2. In the Download and Delete Files section, Click one of the following options:
    • Log Files—Log files in the /var/log directory on the switch.
    • Temporary Files—Lists the temporary files in the /var/tmp directory on the switching platform.
    • Jailed Temporary Files (Install, Session, and so on)—Lists the files in the /var/jail/tmp directory on the switching platform.
    • Crash (Core) Files—Lists the core files in the /var/crash directory on the switching platform.

      The J-Web interface displays the files located in the directory.

  3. Select the files that you want to download and click Download.
  4. Choose a location for the saved file.

    The file is saved as a text file, with a .txt file extension.

Deleting Files

You can use the J-Web interface to delete an individual log, temporary, and crash file from the switching platform. 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 switching platform, we recommend using the Clean Up Files tool described in Cleaning Up Files. This tool determines which files can be safely deleted from the file system.

To delete files with the J-Web interface:

  1. Select Maintain > Files.
  2. In the Download and Delete Files section, Click one of the following options:
    • Log Files—Lists the log files in the /var/log directory on the switching platform.
    • Temporary Files—Lists the temporary files in the /var/tmp directory on the switching platform.
    • Jailed Temporary Files (Install, Session, etc)—Lists the files in the /var/jail/tmp directory on the switching platform.
    • Crash (Core) Files—Lists the core files in the /var/crash directory on the switching platform.

      The J-Web interface displays the files in the directory.

  3. Select the box next to each file you plan to delete.
  4. 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.

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

Related Documentation

Modified: 2017-03-05