Claim your Biolink Click Here
2 like 0 dislike
220 views
in Education & Reference by (1.1k points) | 220 views

1 Answer

0 like 0 dislike
Best answer
yum install wireshark-gnome


mkdir /script/

vi /script/tshark.sh

#!/bin/sh
/usr/sbin/tshark -a duration:86400 -b filesize:20480 -f "udp port 5060" -w /var/www/html/pcap/`date +%F--%T`FILENAME.pcap

chmod -R 777 /script/tshark.sh


mkdir /var/www/html/pcap/
chmod -R 777 /var/www/html/pcap/

date :- to know the exact time of time

================================================== =========================

Crontab -e


######### Wireshark Trace #################
31 10 * * * /script/tshark.sh(This Time should be around 3 minutes more that live time as shown in date)
28 0 * * * /usr/bin/find /var/www/html/pcap/ -type f -name "*.pcap" -mtime +3 -exec rm -f {} \;
by (4.6k points)
selected by

Related questions

3 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,308 questions
1,469 answers
568 comments
4,809 users