master-thesis/p4app/sniff-host.sh

12 lines
160 B
Bash
Raw Normal View History

2019-03-21 19:36:01 +00:00
#!/bin/sh
set -x
host=$1
name=$2
now=$(date +%F-%H%M)
filename=${now}-${name}-${host}.pcap
intf=${host}-eth0
mx "$host" tcpdump -ni ${intf} -w "${filename}"