NAME

SNMP::Info::Layer3::C3550 - Perl5 Interface to Cisco Catalyst 3550 Layer 2/3 Switches running IOS

AUTHOR

Max Baker (max@warped.org)

SYNOPSIS

# Let SNMP::Info determine the correct subclass for you. 
my $c3550 = new SNMP::Info(
                         AutoSpecify => 1,
                         Debug       => 1,
                         # These arguments are passed directly on to SNMP::Session
                         DestHost    => 'myswitch',
                         Community   => 'public',
                         Version     => 2
                       ) 
   or die "Can't connect to DestHost.\n";

my $class      = $c3550->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";

DESCRIPTION

Abstraction subclass for Cisco Catalyst 3550 Layer 2/3 Switches.

These devices run IOS but have some of the same charactersitics as the Catalyst WS-C family (5xxx,6xxx). For example, forwarding tables are held in VLANs, and extened interface information is gleened from CISCO-SWITCH-MIB.

For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.

my $c3550 = new SNMP::Info::Layer3::C3550(...);

Inherited Classes

SNMP::Info::Layer3

Required MIBs

CISCO-STACK-MIB
CISCO-VTP-MIB

GLOBALS

These are methods that return scalar value from SNMP

$c3550->serial() (chassisSerialNumberString)
$c3550->model() (chassisModel)
$c3550->ps1_type() (chassisPs1Type)
$c3550->ps2_type() (chassisPs2Type)
$c3550->ps1_status() (chassisPs1Status)
$c3550->ps2_status() (chassisPs2Status)
$c3550->slots() (chassisNumSlots)
$c3550->fan() (chassisFanStatus)
$c3550->vendor()
Returns 'cisco'

Globals imported from SNMP::Info::Layer3

See documentation in SNMP::Info::Layer3 for details.

TABLE ENTRIES

These are methods that return tables of information in the form of a reference to a hash.

Overrides

$c3550->i_type()

Crosses p_port() with p_type() and returns the results.

Overrides with ifType if p_type() isn't available.

$c3550->i_name()

Crosses p_name with p_port and returns results.

$c3550->i_duplex()

Crosses p_duplex with p_port and returns results.

$c3550->i_duplex_admin()

Crosses p_duplex_admin with p_port.

Munges bit_string returned from p_duplex_admin to get duplex settings.

Port Entry Table (CISCO-STACK-MIB::portTable)

$c3550->p_name()

(portName)

$c3550->p_type()

(portType)

$c3550->p_status()

(portOperStatus)

$c3550->p_status2()

(portAdditionalStatus)

$c3550->p_speed()

(portAdminSpeed)

$c3550->p_duplex()

(portDuplex)

$c3550->p_port()

(portIfIndex)

Port Capability Table (CISCO-STACK-MIB::portCpbTable)

$c3550->p_speed_admin()

(portCpbSpeed)

$c3550->p_duplex_admin()

(portCpbDuplex)

VLAN Entry Table

See ftp://ftp.cisco.com/pub/mibs/supportlists/wsc5000/wsc5000-communityIndexing.html for a good treaty of how to connect to the VLANs

$c3550->v_state()

(vtpVlanState)

$c3550->v_type()

(vtpVlanType)

$c3550->v_name()

(vtpVlanName)

$c3550->v_mtu()

(vtpVlanMtu)

Table Methods imported from SNMP::Info::Layer3

See documentation in SNMP::Info::Layer3 for details.