NAME
SNMP::Info::Layer2::C1900 - SNMP Interface to old C1900 Network Switches
DESCRIPTION
Provides abstraction to the configuration information obtainable from a C1900 device through SNMP. See inherited classes' documentation for inherited methods.
Inherits from:
SNMP::Info::Layer2
Required MIBs:
STAND-ALONE-ETHERNET-SWITCH-MIB (ESSWITCH-MIB)
MIBs listed in SNMP::Info::Layer2
ESSWITCH-MIB is included in the Version 1 MIBS from Cisco. They can be found at ftp://ftp.cisco.com/pub/mibs/v1/v1.tar.gz
AUTHOR
Max Baker (max@warped.org
)
SYNOPSIS
my $c1900 = new SNMP::Info::Layer2::C1900(DestHost => 'mycat1900' ,
Community => 'public' );
CREATING AN OBJECT
- new SNMP::Info::Layer2::C1900()
-
Arguments passed to new() are passed on to SNMP::Session::new()
my $c1900 = new SNMP::Info::Layer2::C1900( DestHost => $host, Community => 'public', Version => 3,... ) die "Couldn't connect.\n" unless defined $c1900;
- $c1900->session()
-
Sets or returns the SNMP::Session object
# Get my $sess = $c1900->session(); # Set my $newsession = new SNMP::Session(...); $c1900->session($newsession);
GLOBALS
TABLE ENTRIES
Overrides
- $c1900->i_duplex()
-
Returns reference to map of IIDs to current link duplex
Crosses $c1900->c1900_p_index() with $c1900->c1900_p_duplex;
- $c1900->i_duplex_admin()
-
Returns reference to hash of IIDs to admin duplex setting
Crosses $c1900->c1900_p_index() with $c1900->c1900_p_duplex_admin;
- $c1900->i_type()
-
Returns reference to hash of IID to port type
Takes the default ifType and overrides it with
c1900_p_type() and c1900_p_media() if they exist.
STAND-ALONE-ETHERNET-SWITCH-MIB Switch Port Table Entries:
- $c1900->c1900_p_index()
-
Maps the Switch Port Table to the IID
swPortIfIndex
- $c1900->c1900_p_duplex()
-
Gives Port Duplex Info
swPortDuplexStatus
- $c1900->c1900_p_duplex_admin()
-
Gives admin setting for Duplex Info
swPortFullDuplex
- $c1900->c1900_p_name()
-
Gives human set name for port
swPortName
- $c1900->c1900_p_up_admin()
-
Gives Admin status of port enabled.
swPortAdminStatus
- $c1900->c1900_p_type()
-
Gives Type of port, ie. "general-ethernet"
swPortMediaCapability
- $c1900->c1900_p_media()
-
Gives the media of the port , ie "fiber-sc"
swPortConnectorType