4 test -z "$instance" && echo "Usage:$0 instance [0|intefrace]" && exit 1
6 test -z "$interface" && interface=0
8 on_node=`gnt-instance list --no-header -o pnode $instance`
9 mac=`gnt-instance info --static $instance | grep MAC: | awk -v nr=$interface 'BEGIN { line=0 } { if ( line == nr ) { print $2 } line = line + 1 }'`
10 tap=`ssh $on_node cat /var/run/ganeti/kvm-hypervisor/nic/$instance/$interface || exit 1`
11 ssh $on_node "tcpdump -i $tap -v ether host $mac"