#!/usr/bin/perl -w # $Id$ $DevMatrix = '../DeviceMatrix.txt'; $DevHTML = 'DeviceMatrix.html'; $DevPNG = 'DeviceMatrix.png'; $Attributes= {}; # Parse Data File $matrix = parse_data($DevMatrix); # Graph it for fun eval "use GraphViz::Data::Structure;"; if ($@ or 1) { print "GraphViz::Data::Structure not installed.\n"; } else { my $gvds = GraphViz::Data::Structure->new($matrix); $gvds->graph()->as_png($DevPNG); } open (HTML, "> $DevHTML") or die "Can't open $DevHTML. $!\n"; $old_fh = select(HTML); &html_head; print_vendors($matrix); foreach my $vendor (sort sort_nocase keys %$matrix){ print "$vendor\n"; print "
| ",join(" \n",@$val)," | \n";
}
print "
end_head } sub html_tail { print <<'end_tail';
| Arpnip | Ability to collect ARP tables for MAC to IP translation. |
| CDP | Cisco Discovery Protocol usable.
|
| Class | SNMP::Info Class the the device currently uses. Devices using more generic interfaces like Layer2 or Layer3 may eventually get their own subclass. |
| Duplex | Ability to cull duplex settings from device.
|
| Macsuck | Ability to get CAM tables for MAC to switch port mapping.
|
| Portmac | Whether the device will list the MAC address of the switch port on each switch port when doing a Macsuck. |
| Ver | SNMP Protocol Version the device has to use. |