SiempreII6c80ae

updated

11 months ago

S

SiempreII6c80ae

1 Rookie

•

5 Posts

•

2 Points

0

300

December 26th, 2025 08:01

Clean up files with Dell Enterprise SONIC

Hi Dell team,

I'm looking for a standard or recommended way to clean up files on switches with Dell Enterprise SONIC after a period of continuous operation.

Does the OS have any command to support this request, or at least some kind of file cleanup procedure ?

Looking forward to the feedback.

  • DELL-Chris H

    7 Practitioner

    •

    9682 Posts

    •

    48046 Points

    0

    0

    Posted December 26th, 2025 13:00

    SiempreII6c80ae,

     

    Some things that you can safely clear up are as follows. 

    1. System & Audit logs – View, count, and clear local log buffers.

      • show logging — view system logs.
      • show logging count — see how many entries exist.
      • clear logging — clears system logs and audit logs 
    2. Tech‑support archives in /var/dump — List, copy off‑box, and delete old tar.gz bundles.

      • dir tech-support:/ — list files in /var/dump.
      • copy tech-support://<filename> scp://… — export to an external server.
      • delete tech-support:/ <filename> — remove old bundles to free flash space.

     

    Also a standard cleanup procedure would be 

     


    Assess log volume

    DELLSONiC# show logging
    DELLSONiC# show logging count

     


    Clear local logs (system + audit)

    DELLSONiC# clear logging


    Review tech‑support archives and remove old ones

    DELLSONiC# dir tech-support:/
    DELLSONiC# delete tech-support:/ <old_bundle.tar.gz>


    Optionally export before deleting

    DELLSONiC# copy tech-support://<bundle.tar.gz> scp://user@server/path/

     

    Let me know if this helps.

     

    DELL-Chris H

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • SiempreII6c80ae

    1 Rookie

    •

    5 Posts

    •

    2 Points

    0

    0

    Posted December 27th, 2025 14:52

    Thank @DELL-Chris H ​ 

    clear logging — clears system logs and audit logs. 

    I noticed the command only deletes the most recent uncompressed syslog files.

    There are many older compressed syslog files that I think should also be deleted by that command.

    With upcoming versions, I wonder if Dell SONIC will improve the file cleanup process?

  • DELL-Joey C

    Moderator

    •

    4170 Posts

    •

    20965 Points

    0

    1

    Posted December 28th, 2025 23:25

    Hi,

     

    I don't see any update notes for the upcoming release yet. It's probably might be in the minor adjustments. Let us know if the coming update would help to clear the logs. 

    DELL-Joey C

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’ if I did.