master-thesis/p4app/sniff-host.sh
2019-03-21 20:36:39 +01:00

11 lines
160 B
Bash
Executable file

#!/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}"