Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    SNMP::BridgeQuery 0.61

    Download button

    No screenshots available
    Downloads: 444  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    John D. Shearer | More programs
    Perl Artistic License / FREE
    April 19th, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    SNMP::BridgeQuery description

    BridgeQuery is a Perl extension for retrieving bridge tables.

    BridgeQuery is a Perl extension for retrieving bridge tables.

    SYNOPSIS

    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 an error. If an error is generated, it will return a hash reference with a single element ('error') which can be tested for.

    Two other functions (querymacs & queryports) can be explicitly exported. They work the same way as queryfdb, but they return MAC addresses or ports (respectively) with the SNMP MIB as the hash key.

    A newly added function (queryat) can be used on layer 3 switches to poll the Address Translation Tables. This is similar to the data returned by the 'queryfdb' function, but it returns the IP address of the device and the associated interface (separated by a pipe '|') with the MAC address as the key. On a layer 3 switch, this interface probably does not correspond to a physical port, but more likely refers to a vlan ID. Using this function on a layer 2 device will generate a 'trapped' error.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    retrieving bridge | bridge tables | Perl module | SNMP::BridgeQuery | retrieving | bridge

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM