SNMP::Info::Layer1 - Perl5 Interface to Layer1 network devices.
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
Max Baker (max@warped.org)
max@warped.org
my $l1 = new SNMP::Info::Layer1(DestHost => 'mybridge' , Community => 'public' );
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;
Trys to discover the vendor from $l1->model() and $l1->vendor()
Gets the number of ports under the interface mib
(ifNumber)
Adds the values from rptr_ports() and ports_managed()
Number of 'groups' in the Repeater MIB
(rptrGroupCapacity)
Number of ports in each group.
(rptrGroupPortCapacity)
Port number in Group
(rptrPortIndex)
Group (slot) Number for given port.
(rptrPortGroupIndex)
(rptrPortAdminStatus)
(rptrPortOperStatus)
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.