I'm trying to write a script that will always be running in the background
and awk for the first column in the output; if the output don't match with
my predefined output, it will send out an email.
The current output I'm getting is
Quote:
00:30:96:16:24:23 -> 00:1b:cf:12:a7:21 192.168.25.1 -> 192.168.25.25
|
I would like to awk the "00:30:96:16:24:23" and match against my pre-defined "00:30:96:16:24:23"
Here's my script
Code:
#!/bin/bash
tshark -i eth0 -n port 68 -R 'bootp.type == 2' -o column.format:'"Source MAC","%hs","Destination MAC","%hd","Source","%s","Destination","%d"'
Thanks for any help.