Community discussions

MikroTik App
 
tatsugot
just joined
Topic Author
Posts: 22
Joined: Tue Jul 26, 2016 8:16 pm

Overwrite file with new sniffed packets

Wed Aug 17, 2016 3:08 pm

I am using sniffer to sniff packets for a short duration say 20sec . I want to overwrite the file with new sniffed packets . Right now while saving packets both old and new packets are written into the file. After 20 sec the sniffer restarts sniffing so I want to write only packets sniffed in that duration into the file. How can I do that?
Thanks in advance.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: Overwrite file with new sniffed packets

Wed Aug 17, 2016 4:15 pm

I've never seen the behavior you describe. For me, it's always overwritten the file with each new capture.
 
tatsugot
just joined
Topic Author
Posts: 22
Joined: Tue Jul 26, 2016 8:16 pm

Re: Overwrite file with new sniffed packets

Wed Aug 17, 2016 5:04 pm

I've never seen the behavior you describe. For me, it's always overwritten the file with each new capture.
Sir, I have written script as /interface wireless sniffer sniff wlan1 and put this into scheduler which runs for 1 min after that the next scheduler runs script to save file. Is the problem coming because we need to stop the sniffer then save file and then start sniffer again ? This way the data will be recollected. How can I stop the sniffer? I didn't find any option to stop it from script.
 
User avatar
erreferre
just joined
Posts: 21
Joined: Mon Sep 08, 2014 2:29 pm

Re: Overwrite file with new sniffed packets

Wed Mar 01, 2017 6:27 pm

Hi, I have the same problem to do periodic wireless sniffs with scripts. How can we stop wireless sniffer?
START => /interface wireless sniffer sniff interface=wlan1
STOP => ??

Who is online

Users browsing this forum: honzam and 23 guests