SNMP::Info::CiscoStack - Intefaces to data from CISCO-STACK-MIB and CISCO-PORT-SECURITY-MIB
Max Baker (max@warped.org)
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.
CISCO-STACK-MIB
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.
(sysBroadcast)
(chassisFanStatus)
(chassisModel)
(sysNetMask)
(chassisPs1Type)
(chassisPs2Type)
(chassisPs1Status)
(chassisPs2Status)
(chassisSerialNumberString) or (chassisSerialNumber)
(chassisNumSlots)
See CISCO-PORT-SECURITY-MIB for details.
cpsGlobalClearSecureMacAddresses
cpsGlobalSNMPNotifControl
cpsGlobalSNMPNotifRate
cpsGlobalPortSecurityEnable
cpsGlobalTotalSecureAddress
cpsGlobalMaxSecureAddress
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.
(moduleType)
(moduleModel)
(moduleSerialNumber)
(moduleStatus)
(moduleName)
(moduleNumPorts)
Returns a list of space separated status strings for the ports.
To see the status of port 4 :
@ports_status = split(' ', $stack->m_ports_status() ); $port4 = $ports_status[3];
(modulePortStatus)
(moduleHwVersion)
(moduleFwVersion)
(moduleSwVersion)
(moduleIPAddress)
(moduleSubType)
(moduleSubType2)
(portName)
(portType)
(portOperStatus)
(portAdditionalStatus)
(portAdminSpeed)
(portDuplex)
(portIfIndex)
(portCpbSpeed)
(portCpbDuplex)
cpsIfInvalidSrcRateLimitValue
cpsIfInvalidSrcRateLimitEnable
cpsIfStickyEnable
cpsIfClearSecureMacAddresses
cpsIfShutdownTimeout
cpsIfUnicastFloodingEnable
cpsIfClearSecureAddresses
cpsIfSecureLastMacAddress
cpsIfViolationCount
cpsIfViolationAction
cpsIfStaticMacAddrAgingEnable
cpsIfSecureMacAddrAgingType
cpsIfSecureMacAddrAgingTime
cpsIfCurrentSecureMacAddrCount
cpsIfMaxSecureMacAddr
cpsIfPortSecurityStatus
cpsIfPortSecurityEnable
cpsIfVlanCurSecureMacAddrCount
cpsIfVlanMaxSecureMacAddr
cpsIfVlanIndex
cpsIfVlanSecureMacAddrRowStatus
cpsIfVlanSecureMacAddrRemainAge
cpsIfVlanSecureMacAddrType
cpsIfVlanSecureVlanIndex
cpsIfVlanSecureMacAddress
cpsSecureMacAddrRowStatus
cpsSecureMacAddrRemainingAge
cpsSecureMacAddrType
cpsSecureMacAddress
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.