Markus Lude wrote:

> AFAIK this is the usual way. Make sure each instance use its own data
> file.

Oh, ok. Thank you for your post. I've done it this way:

I have several lines of "vlanXXX = carpXXX:network" in the file /etc/pf.conf

In /etc/rc.local I placed this snippet:

echo -n ' arpwatch'
for CARP in `/usr/bin/grep '.*carp[0-9][0-9][0-9]:network' /etc/pf.conf
| /usr/bin/awk '{print $3}' | /usr/bin/awk -F: '{print $1}'`; do
  if [ ! -f /var/arpwatch/$CARP.dat ]; then
    /usr/bin/touch /var/arpwatch/$CARP.dat
  fi
  /usr/local/sbin/arpwatch -i $CARP -f /var/arpwatch/$CARP.dat && echo
-n " $CARP"
done

> Regards,
> Markus

Regards,

Falk

Reply via email to