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

11 lines
160 B
Bash

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