Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Remove old packet capture files?

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      verta
      last edited by

      Hi all,

      Hope fully this is a simple question to answer. Is there any way to remove old packet capture files created via the GUI? I have a 1GB capture just sitting in flash on a SG-3100 which is filling up a lot of the limited space.

      Thanks,
      Verta

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by

        NB The capabilities offered here can be dangerous. No support is available. Use them at your own risk!

        Diagnostics -> Command Prompt

        If you do a ls ~ you'll see packetcapture.cap

        Then do a rm  ~/packetcapture.cap I'd have rather told you to do a rm -i ~/packetcapture.cap, but the command prompt isn't interactive.

        You could also ssh to the device and do the rm from the shell.

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 1
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          Or just start and stop another capture. Set number of packets to 1 or something or capture on an interface with insignificant traffic.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 1
          • V
            verta
            last edited by

            Thanks both. I feel so silly for not thinking of starting a new pcap with a small count  :o

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.