Skip to content

Instantly share code, notes, and snippets.

@cunnie
Created April 12, 2013 00:42
Show Gist options
  • Save cunnie/5368373 to your computer and use it in GitHub Desktop.
Save cunnie/5368373 to your computer and use it in GitHub Desktop.
Patch file for arpwatch
--- bihourly.sh 2013-04-11 17:37:19.000000000 -0700
+++ bihourly.new.sh 2013-04-11 17:39:18.000000000 -0700
@@ -6,7 +6,7 @@
PATH=${PATH}:/usr/local/sbin
export PATH
#
-cd /usr/operator/arpwatch
+cd /usr/local/arpwatch
#
list="`cat list`"
cname="`cat cname`"
@@ -44,21 +44,21 @@
sed -e '/arpsnmp: suppressed DECnet flip flop/d' ${temp1} > ${temp2}
if [ -s ${temp2} ]; then
mail -s "`hostname` arpwatch report" \
- arpwatch-reports@noname.lbl.gov < ${temp2}
+ cunnie+arpwatch@pivotallabs.com < ${temp2}
fi
rm -f ${temp1} ${temp2}
-d=/www/NETINFO/arpwatch
-
-f=arp.dat
-cp ${f} ${d}
-
-f=ethercodes.dat
-diff ethercodes.dat ${d} >>/dev/null 2>&1
-if [ $? -ne 0 ]; then
- echo Updating ${d}/${f}
- cp ${f} ${d}
-fi
+#d=/www/NETINFO/arpwatch
+#
+#f=arp.dat
+#cp ${f} ${d}
+#
+#f=ethercodes.dat
+#diff ethercodes.dat ${d} >>/dev/null 2>&1
+#if [ $? -ne 0 ]; then
+# echo Updating ${d}/${f}
+# cp ${f} ${d}
+#fi
rm ${l}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment