SNMP::Info::EtherLike - Perl5 Interface to SNMP ETHERLIKE-MIB
SNMP::Info::EtherLike is a subclass of SNMP::Info that supplies access to the ETHERLIKE-MIB used by some Layer 3 Devices such as Cisco routers.
Use SNMP::Info directly, or create a subclass that inherits this one.
Max Baker (max@warped.org)
max@warped.org
my $el = new SNMP::Info::EtherLike(DestHost => 'myrouter', Community => 'public'); my $el_decoder = $el->el_index(); my $el_duplex = $el->el_duplex();
Arguments passed to new() are passed on to SNMP::Session::new()
my $el = new SNMP::Info::EtherLike( DestHost => $host, Community => 'public', Version => 3,... ) die "Couldn't connect.\n" unless defined $el;
Returns reference to hash. Indexes Stats Table to the interface index (iid).
(dot3StatsIndex)
Returns reference to hash. Indexes Stats Table to Duplex Status of port.
(dot3StatsDuplexStatus)
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.