NAME

SNMP::Info::EtherLike - Perl5 Interface to SNMP ETHERLIKE-MIB

DESCRIPTION

ETHERLIKE-MIB is used by some Layer 3 Devices such as Cisco routers.

Inherits all methods from SNMP::Info

AUTHOR

Max Baker (max@warped.org)

SYNOPSIS

my $el = new SNMP::Info::EtherLike(DestHost  => 'myrouter',
                                   Community => 'public');

my $el_decoder = $el->el_index();
my $el_duplex = $el->el_duplex(); 

CREATING AN OBJECT

new SNMP::Info::EtherLike()

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;
$el->session()

Sets or returns the SNMP::Session object

# Get
my $sess = $el->session();

# Set
my $newsession = new SNMP::Session(...);
$el->session($newsession);

GLOBALS

None

ETHERLIKE STATS TABLE (dot3StatsTable)

$el->el_index()

Returns reference to hash. Indexes Stats Table to the interface index (iid).

(dot3StatsIndex)

$el->el_duplex()

Returns reference to hash. Indexes Stats Table to Duplex Status of port.

(dot3StatsDuplexStatus)