SNMP::Info::Layer3::C3550 - Perl5 Interface to Cisco Catalyst 3550 Layer 2/3 Switches running IOS
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.
Max Baker (max@warped.org)
max@warped.org
my $c3550 = new SNMP::Info::Layer3::C3550(DestHost => 'router' , Community => 'public' );
Arguments passed to new() are passed on to SNMP::Session::new()
my $c3550 = new SNMP::Info::Layer3::C3550( DestHost => $host, Community => 'public', Version => 3,... ) die "Couldn't connect.\n" unless defined $c3550;
Sets or returns the SNMP::Session object
# Get my $sess = $c3550->session(); # Set my $newsession = new SNMP::Session(...); $c3550->session($newsession);
Returns 'cisco'
Crosses p_port() with p_type() and returns the results. Overrides with ifType if p_type() isn't available.
Crosses p_name with p_port and returns results.
Crosses p_duplex with p_port and returns results.
Crosses p_duplex_admin with p_port. Munges bit_string returned from p_duplex_admin to get duplex settings.
See ftp://ftp.cisco.com/pub/mibs/supportlists/wsc5000/wsc5000-communityIndexing.html for a good treaty of how to connect to the VLANs
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.