John D. Shearer > SNMP-BridgeQuery-0.61 > SNMP::BridgeQuery
Annotate this POD  Related Modules  View/Report Bugs Module
Version: 0.61   Source     BridgeQuery - Perl extension for
retrieving bridge tables.     use SNMP::BridgeQuery;   use
SNMP::BridgeQuery qw(querymacs queryports queryat);    $fdb =
queryfdb(host => $address,                   comm =>
$community);   unless (exists $fdb->{error}) {
($fdb->{$mac} = "n/a") unless (exists $fdb->{$mac});      print
"This MAC address was found on port: ".$fdb->{$mac}."\n";
BridgeQuery polls a device which responds to SNMP Bridge Table
queries and generates a hash reference with each polled MAC
address as the key and the associated port as the value. The
specific MIBs that are polled are described in RFC1493.
SNMP::BridgeQuery requires Net::SNMP in order to function.
(Checked for during 'perl Makefile.PL')  Devices can be
switches, bridges, or most anything that responds as a OSI Layer
2 component. Layer 3 devices do not generally respond and will
cause a