1SNMP::Info::CiscoPortSeUcsuerritCyo(n3t)ributed Perl DocSuNmMePn:t:aItnifoon::CiscoPortSecurity(3)
2
3
4
6 SNMP::Info::CiscoPortSecurity - SNMP Interface to data from
7 CISCO-PORT-SECURITY-MIB, CISCO-PAE-MIB and CISCO-ERR-DISABLE-MIB.
8
10 Eric Miller
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $cps = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 DestHost => 'myswitch',
18 Community => 'public',
19 Version => 2
20 )
21 or die "Can't connect to DestHost.\n";
22
23 my $class = $cps->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 SNMP::Info::CiscoPortSecurity is a subclass of SNMP::Info that provides
28 an interface to the CISCO-PORT-SECURITY-MIB, CISCO-PAE-MIB and CISCO-
29 ERR-DISABLE-MIB. These MIBs are used across the Catalyst family under
30 CatOS and IOS.
31
32 Use or create in a subclass of SNMP::Info. Do not use directly.
33
34 Inherited Classes
35 None.
36
37 Required MIBs
38 CISCO-PORT-SECURITY-MIB
39 CISCO-PAE-MIB
40 IEEE8021-PAE-MIB
41 CISCO-ERR-DISABLE-MIB
42
44 These are methods that return scalar values from SNMP
45
46 CISCO-PORT-SECURITY-MIB globals
47 $cps->cps_clear()
48 ("cpsGlobalClearSecureMacAddresses")
49
50 $cps->cps_notify()
51 ("cpsGlobalSNMPNotifControl")
52
53 $cps->cps_rate()
54 ("cpsGlobalSNMPNotifRate")
55
56 $cps->cps_enable()
57 ("cpsGlobalPortSecurityEnable")
58
59 $cps->cps_mac_count()
60 ("cpsGlobalTotalSecureAddress")
61
62 $cps->cps_mac_max()
63 ("cpsGlobalMaxSecureAddress")
64
66 "CISCO-PORT-SECURITY-MIB" - Interface Config Table
67 $cps->cps_i_limit_val()
68 ("cpsIfInvalidSrcRateLimitValue")
69
70 $cps->cps_i_limit()
71 ("cpsIfInvalidSrcRateLimitEnable")
72
73 $cps->cps_i_sticky()
74 ("cpsIfStickyEnable")
75
76 $cps->cps_i_clear_type()
77 ("cpsIfClearSecureMacAddresses")
78
79 $cps->cps_i_shutdown()
80 ("cpsIfShutdownTimeout")
81
82 $cps->cps_i_flood()
83 ("cpsIfUnicastFloodingEnable")
84
85 $cps->cps_i_clear()
86 ("cpsIfClearSecureAddresses")
87
88 $cps->cps_i_mac()
89 ("cpsIfSecureLastMacAddress")
90
91 $cps->cps_i_count()
92 ("cpsIfViolationCount")
93
94 $cps->cps_i_action()
95 ("cpsIfViolationAction")
96
97 $cps->cps_i_mac_static()
98 ("cpsIfStaticMacAddrAgingEnable")
99
100 $cps->cps_i_mac_type()
101 ("cpsIfSecureMacAddrAgingType")
102
103 $cps->cps_i_mac_age()
104 ("cpsIfSecureMacAddrAgingTime")
105
106 $cps->cps_i_mac_count()
107 ("cpsIfCurrentSecureMacAddrCount")
108
109 $cps->cps_i_mac_max()
110 ("cpsIfMaxSecureMacAddr")
111
112 $cps->cps_i_status()
113 ("cpsIfPortSecurityStatus")
114
115 $cps->cps_i_enable()
116 ("cpsIfPortSecurityEnable")
117
118 "CISCO-PORT-SECURITY-MIB::cpsIfVlanTable"
119 $cps->cps_i_v_mac_count()
120 ("cpsIfVlanCurSecureMacAddrCount")
121
122 $cps->cps_i_v_mac_max()
123 ("cpsIfVlanMaxSecureMacAddr")
124
125 "CISCO-PORT-SECURITY-MIB::cpsIfVlanSecureMacAddrTable"
126 $cps->cps_i_v_mac_status()
127 ("cpsIfVlanSecureMacAddrRowStatus")
128
129 $cps->cps_i_v_mac_age()
130 ("cpsIfVlanSecureMacAddrRemainAge")
131
132 $cps->cps_i_v_mac_type()
133 ("cpsIfVlanSecureMacAddrType")
134
135 "CISCO-PORT-SECURITY-MIB::cpsSecureMacAddressTable"
136 $cps->cps_m_status()
137 ("cpsSecureMacAddrRowStatus")
138
139 $cps->cps_m_age()
140 ("cpsSecureMacAddrRemainingAge")
141
142 $cps->cps_m_type()
143 ("cpsSecureMacAddrType")
144
145 "IEEE8021-PAE-MIB::dot1xPaePortEntry"
146 $cps->pae_i_capabilities()
147 "dot1xPaePortCapabilities"
148
149 Indicates the PAE functionality that this Port supports and that
150 may be managed through this MIB munged to return either
151 'dot1xPaePortAuthCapable' or 'dot1xPaePortSuppCapable'.
152
153 $cps->pae_i_last_eapol_frame_source()
154 "dot1xAuthLastEapolFrameSource"
155
156 The source MAC address carried in the most recently received EAPOL
157 frame.
158
159 "CISCO-ERR-DISABLE-MIB::cErrDisableIfStatusEntry"
160 $cps->cerr_i_cause()
161 "cErrDisableIfStatusCause"
162
163 Indicates the feature/event that caused the {interface, vlan} (or
164 the entire interface) to be error-disabled.
165
167 "i_err_disable_cause"
168 Returns a HASH reference mapping ifIndex to err-disabled cause. The
169 returned data is sparse, so if the ifIndex is not present in the
170 return value, the port is not err-disabled.
171
173 $cps->munge_pae_capabilities()
174 Return either 'dot1xPaePortAuthCapable' or
175 'dot1xPaePortSuppCapable' based upon bit value.
176
177
178
179perl v5.32.0 2020-07-28 SNMP::Info::CiscoPortSecurity(3)