The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SNMP::Info::Layer1 - Perl5 Interface to Layer1 network devices.

DESCRIPTION

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

Inherits from:

 SNMP::Info

MIBS:

 MIBS listed in SNMP::Info

Cisco MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz

AUTHOR

Max Baker (max@warped.org)

SYNOPSIS

 my $l1 = new SNMP::Info::Layer1(DestHost  => 'mybridge' , 
                              Community => 'public' ); 

CREATING AN OBJECT

new SNMP::Info::Layer1()

Arguments passed to new() are passed on to SNMP::Session::new()

    my $l1 = new SNMP::Info::Layer1(
        DestHost => $host,
        Community => 'public',
        Version => 3,...
        ) 
    die "Couldn't connect.\n" unless defined $l1;

GLOBALS

$l1->vendor()

Trys to discover the vendor from $l1->model() and $l1->vendor()

$l1->ports_managed()

Gets the number of ports under the interface mib

(ifNumber)

$l1->ports()

Adds the values from rptr_ports() and ports_managed()

$l1->slots()

Number of 'groups' in the Repeater MIB

(rptrGroupCapacity)

TABLE ENTRIES

Overrides

$l1->interfaces()
$l1->i_up()
$l1->i_up_admin()

Repeater MIB

$l1->rptr_ports()

Number of ports in each group.

(rptrGroupPortCapacity)

$l1->rptr_port()

Port number in Group

(rptrPortIndex)

$l1->rptr_slot()

Group (slot) Number for given port.

(rptrPortGroupIndex)

$l1->rptr_up_admin()

(rptrPortAdminStatus)

$l1->rptr_up()

(rptrPortOperStatus)