Wednesday, February 20, 2008

running iptraf in background

list help
iptraf -h

detailed statistics
iptraf -d eth0 -L /home/sbx/iptraf.log -B

output
Average rates:
Total: 2.00 kbits/s, 1.90 packets/s
Incoming: 0.00 kbits/s, 0.00 packets/s
Outgoing: 2.00 kbits/s, 1.90 packets/s

Peak total activity: 5.71 kbits/s, 4.40 packets/s
Peak incoming rate: 0.00 kbits/s, 0.00 packets/s
Peak outgoing rate: 5.71 kbits/s, 4.40 packets/s


to stop
kill -USR2 pid