The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SNMP::Info::Layer2::Catalyst - Perl5 Interface to Cisco Catalyst 5000 series devices.

AUTHOR

Max Baker (max@warped.org)

SYNOPSIS

 # Let SNMP::Info determine the correct subclass for you. 
 my $cat = 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      = $cat->class();
 print "SNMP::Info determined this device to fall under subclass : $class\n";

DESCRIPTION

SNMP::Info subclass to provide information for Cisco Catalyst 5000 series switches running CatOS.

This subclass is not for all devices that have the name Catalyst. Note that some Catalyst switches run IOS, like the 2900 and 3550 families. Cisco Catalyst 1900 switches use their own MIB and have a separate subclass. Use the method above to have SNMP::Info determine the appropriate subclass before using this class directly.

This class includes the Catalyst 2950 series devices, which fall under the Catalyst 5000 family.

Note: Some older Catalyst switches will only talk SNMP version 1. Some newer ones will not return all their data if connected via Version 1.

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

 my $cat = new SNMP::Info::Layer2::Catalyst(...);

Inherited Classes

SNMP::Info::Layer2
SNMP::Info::CiscoVTP
SNMP::Info::CiscoStack

Required MIBs

Inherited Classes' MIBs

See SNMP::Info::Layer2 for its own MIB requirements.

See SNMP::Info::CiscoVTP for its own MIB requirements.

See SNMP::Info::CiscoStack for its own MIB requirements.

These MIBs are found in the standard v2 MIBs from Cisco.

GLOBALS

These are methods that return scalar value from SNMP

$cat->os()

Returns 'catalyst'

$cat->os_ver()

Tries to use the value from SNMP::Info::CiscoStats->os_ver() and if it fails it grabs $cat->m_swver()->{1} and uses that.

$cat->vendor()

Returns 'cisco'

Globals imported from SNMP::Info::Layer2

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

Global Methods imported from SNMP::Info::CiscoVTP

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

Global Methods imported from SNMP::Info::CiscoStack

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

TABLE ENTRIES

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

Table Methods imported from SNMP::Info::CiscoVTP

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

Table Methods imported from SNMP::Info::Layer2

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

Table Methods imported from SNMP::Info::Layer2::CiscoSTack

See documentation in SNMP::Info::Layer2::CiscoStack for details.