NAME

physaddrwatch - monitor usage of media physical addresses


SYNOPSIS

usage: physaddrwatch [ -hvq ] [ -d data_file ] [ -s ds[,arg2,...]] [ -c community ] gateway [ ... ] -h - help -d data_file - use this data file (defaults to ``physaddrwatch.dat'') -s ds[,...] - use ``physaddr'' table in SQL database rather than a data file. (Or in addition to a data file if ``-d data_file'' is specified as well.) The specified value will be used as argument(s) to DBI->connect -v - verbose -q - quiet (surpresses non-fatal warnings) -c - community (default: ``public'')


DESCRIPTION

physaddrwatch is a utility to monitor usage of media physical addresses by IP and AppleTalk addresses using SNMP tables on routers (ipNetToMediaPhysAddr, aarpPhysAddress).

This utility maintains a data file (e.g. ``physaddrwatch.dat'') containing three white-space seperated columns. These columns contain, in order, the IP or AppleTalk address, physical ethernet (MAC) or ATM address, and the date and time.

physaddrwatch locks its data file while polling each gateway. This prevents the file from becoming corrupt by having multiple processes attempt to write it simultaneously.


EXAMPLES

    physaddrwatch router

    physaddrwatch -d router.dat router

    mysql test <<_EOF_
    CREATE TABLE physaddr (
    physaddress VARCHAR(40) NOT NULL,
    address CHAR(16) NOT NULL,
    dt DATETIME NOT NULL,
    PRIMARY KEY (physaddress, address),
    KEY (physaddress),
    KEY (address)
    );
    _EOF_
    physaddrwatch -vs "DBI:mysql:test;mysql_read_default_file=`ls ~/.my.cnf`" router


AUTHOR

Dave Plonka