Oliver Gorwits > SNMP-Info-3.12 > SNMP::Info::Layer7

Download:
SNMP-Info-3.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 3.12   Source   Latest Release: SNMP-Info-3.20

NAME ^

SNMP::Info::Layer7 - SNMP Interface to network devices serving Layer7 only.

AUTHOR ^

Jeroen van Ingen

SYNOPSIS ^

 # Let SNMP::Info determine the correct subclass for you. 
 my $l7 = new SNMP::Info(
                          AutoSpecify => 1,
                          Debug       => 1,
                          DestHost    => 'myswitch',
                          Community   => 'public',
                          Version     => 1
                        ) 
    or die "Can't connect to DestHost.\n";

 my $class = $l7->class();
 print "SNMP::Info determined this device to fall under subclass : $class\n";

 # Let's get some basic Port information
 my $interfaces = $l7->interfaces();
 my $i_up       = $l7->i_up();
 my $i_speed    = $l7->i_speed();

 foreach my $iid (keys %$interfaces) {
    my $port  = $interfaces->{$iid};
    my $up    = $i_up->{$iid};
    my $speed = $i_speed->{$iid}
    print "Port $port is $up. Port runs at $speed.\n";
 }

DESCRIPTION ^

This class is usually used as a superclass for more specific device classes listed under SNMP::Info::Layer7::* Please read all docs under SNMP::Info first.

Provides abstraction to the configuration information obtainable from a Layer7 device through SNMP. Information is stored in a number of MIBs.

For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.

 my $l7 = new SNMP::Info::Layer7(...);

Inherited Classes

SNMP::Info

Required MIBs

None

MIBs required for "Required MIBs" in SNMP::Info

See "Required MIBs" in SNMP::Info for its MIB requirements.

GLOBALS ^

These are methods that return scalar value from SNMP

Overrides

$l7->model()

Cross references $l7->id() with product IDs.

$l7->vendor()

Tries to discover the vendor by looking up the enterprise number in sysObjectID.

Global Methods imported from SNMP::Info

See documentation in "GLOBALS" in SNMP::Info for details.

TABLE METHODS ^

These are methods that return tables of information in the form of a reference to a hash.

Overrides

$l7->interfaces()

Returns reference to the map between IID and physical Port.

$l7->i_ignore()

Returns reference to hash. Increments value of IID if port is to be ignored.

Ignores loopback, other, and cpu

Table Methods imported from SNMP::Info

See documentation in "TABLE METHODS" in SNMP::Info for details.

syntax highlighting: