3
# Specify the ntop.db file location
4
$ntop_db_file = "../ntop.db";
7
print "Usage: addMacAddressFile.pl <file name>\n";
11
if(open(IN, "< $ARGV[0]")) {
15
if(substr($_, -1, 1) eq "\n") { chop($_); }
17
($mac, $value) = split (/\t/,$_);
19
print "Adding $mac/$value\n";
20
system("./addMacAddress $mac \"value\" $ntop_db_file");
23
print "FATAL ERROR: unable to read file $ARGV[0]\n";