SNMP::Info::CiscoPortSecurity3pm
Snmp interface to data from cisco-port-security-mib, cisco-pae-mib and cisco-err-disable-mib.
Usage
# Let SNMP::Info determine the correct subclass for you.my $cps = new SNMP::Info(AutoSpecify => 1,Debug => 1,DestHost => 'myswitch',Community => 'public',Version => 2)or die "Can't connect to DestHost.\n";my $class = $cps->class();print "SNMP::Info determined this device to fall under subclass : $class\n";
Overview
SNMP::Info::CiscoPortSecurity is a subclass of SNMP::Info that provides an interface to the CISCO-PORT-SECURITY-MIB, CISCO-PAE-MIB and CISCO-ERR-DISABLE-MIB. These MIBs are used across the Catalyst family under CatOS and IOS.
Use or create in a subclass of SNMP::Info. Do not use directly.
Inherited Classes
None.
Required MIBs
- CISCO-PORT-SECURITY-MIB
- CISCO-PAE-MIB
- IEEE8021-PAE-MIB
- CISCO-ERR-DISABLE-MIB
Globals
These are methods that return scalar values from SNMP
CISCO-PORT-SECURITY-MIB globals
$cps->
|
( |
|---|---|
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
Table methods
"CISCO-PORT-SECURITY-MIB" - Interface Config Table
$cps->
|
( |
|---|---|
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
$cps->
|
( |
"CISCO-PORT-SECURITY-MIB::cpsIfVlanTable"
$cps->
|
( |
|---|---|
$cps->
|
( |
"CISCO-PORT-SECURITY-MIB::cpsIfVlanSecureMacAddrTable"
$cps->
|
( |
|---|---|
$cps->
|
( |
$cps->
|
( |
"CISCO-PORT-SECURITY-MIB::cpsSecureMacAddressTable"
$cps->
|
( |
|---|---|
$cps->
|
( |
$cps->
|
( |
"IEEE8021-PAE-MIB::dot1xPaePortEntry"
- $cps->
pae_i_capabilities() -
"dot1xPaePortCapabilities"Indicates the PAE functionality that this Port supports and that may be managed through this MIB munged to return either
'dot1xPaePortAuthCapable'or'dot1xPaePortSuppCapable'.
- $cps->
pae_i_last_eapol_frame_source() -
"dot1xAuthLastEapolFrameSource"The source MAC address carried in the most recently received EAPOL frame.
"CISCO-ERR-DISABLE-MIB::cErrDisableIfStatusEntry"
- $cps->
cerr_i_cause() -
"cErrDisableIfStatusCause"Indicates the feature/event that caused the {interface, vlan} (or the entire interface) to be error-disabled.
Methods
- "i_err_disable_cause"
-
Returns a HASH reference mapping ifIndex to err-disabled cause. The returned data is sparse, so if the ifIndex is not present in the return value, the port is not err-disabled.
Data Munging Callback Subroutines
- $cps->
munge_pae_capabilities() -
Return either
'dot1xPaePortAuthCapable'or'dot1xPaePortSuppCapable'based upon bit value.
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 7 times.