SNMP::Info::CiscoStack - Intefaces to data from CISCO-STACK-MIB and CISCO-PORT-SECURITY-MIB
Max Baker (max@warped.org)
# Let SNMP::Info determine the correct subclass for you.
my $ciscostats = 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 = $ciscostats->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
SNMP::Info::CiscoStack is a subclass of SNMP::Info that provides
an interface to the CISCO-STACK-MIB. This MIB is used across
the Catalyst family under CatOS and IOS.
Use or create in a subclass of SNMP::Info. Do not use directly.
none.
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz or from Netdisco-mib package at netdisco.org.
broadcast()fan()model()netmask()ps1_type()ps2_type()ps1_status()ps2_status()serial()slots()
See CISCO-PORT-SECURITY-MIB for details.
cps_clear()cps_notify()cps_rate()cps_enable()cps_mac_count()cps_mac_max()
interfaces()p_port() with i_index() to get physical names.
i_physical()i_type()p_port() with p_type() and returns the results.
Overrides with ifType if p_type() isn't available.
i_name()i_duplex()i_duplex_admin()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.
m_type()m_model()m_serial()m_status()m_name()m_ports()m_ports_status()To see the status of port 4 :
@ports_status = split(' ', $stack->m_ports_status() );
$port4 = $ports_status[3];
(modulePortStatus)
m_ports_hwver()m_ports_fwver()m_ports_swver()m_ports_ip()m_ports_sub1()m_ports_sub2()
m_ip()m_sub1()m_sub2()
p_name()p_type()p_status()p_status2()p_speed()p_duplex()p_port()
p_speed_admin()p_duplex_admin()
See CISCO-PORT-SECURITY-MIB for details.
cps_i_limit_val()cps_i_limit()cps_i_sticky()cps_i_clear_type()cps_i_shutdown()cps_i_flood()cps_i_clear()cps_i_mac()cps_i_count()cps_i_action()cps_i_mac_static()cps_i_mac_type()cps_i_mac_age()cps_i_mac_count()cps_i_mac_max()cps_i_status()cps_i_enable()
cps_i_v_mac_count()cps_i_v_mac_max()cps_i_v()
cps_i_v_mac_status()cps_i_v_mac_age()cps_i_v_mac_type()cps_i_v_vlan()cps_i_v_mac()
cps_m_status()cps_m_age()cps_m_type()cps_m_mac()