SNMP::Info::Layer2::Catalyst - Perl5 Interface to Cisco devices running Catalyst OS
Provides abstraction to the configuration information obtainable from a Catalyst device through SNMP. Information is stored in a number of MIB's such as IF-MIB, CISCO-CDP-MIB, CISCO-STACK-MIB, CISCO-VTP-MIB, and SWITCH-MIB.
Max Baker (max@warped.org)
max@warped.org
my $cat = new SNMP::Info::Layer2::Catalyst(DestHost => 'router' , Community => 'public' );
Arguments passed to new() are passed on to SNMP::Session::new()
my $cat = new SNMP::Info::Layer2::Catalyst( DestHost => $host, Community => 'public', Version => 3,... ) die "Couldn't connect.\n" unless defined $cat;
Returns 'cisco'
Crosses p_port() with i_index() to get physical names.
Returns a map to IID for ports that are physical ports, not vlans, etc.
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.
This table holds configuration information for each of the blades installed in the Catalyst device.
(modulePortStatus)
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.