User Tools

Site Tools


wiki:voip:asterisk:tcpdump

TCPdump

tcpdump.sh
#!/bin/bash
 
iface=eth0
d="$(date +'%Y%m%d')"
ip=213.168.186.130
 
tcpdump -i $iface -s 0 -C 100 -W 99 -U -w /var/log/sledovani-$d.$iface
# Spusteni scriptu na pozadi
root@pbx:~# nohup ./tcpdump.sh &>/dev/null &
 
 
# Priklad jak pracovat s vytvorenymi soubory
root@pbx:~# tcpdump -r /var/log/sledovani-20121213.eth000 -n -v -tttt |less -p 739634909
root@pbx:~# tcpdump -r /var/log/sledovani-20121213.eth000 -n -v -tttt |less 
wiki/voip/asterisk/tcpdump.txt · Last modified: 2014/12/26 18:31 (external edit)