tpPortSecurityLearnMode
TPLINK-PORTSECURITY-MIB ·
.1.3.6.1.4.1.11863.6.12.1.1.1.4
Object
column r/w
Enumeration
This object indicates the learn mode of the port.
dynamic: When dynamic mode is selected, the learned MAC address
will be deleted automatically after the aging time.
static: When static mode is selected, the learned MAC address will
be out of the influence of the aging time and can only be deleted
manually. The learned entries will be cleared after the switch is
rebooted.
permanent: When permanent mode is selected, the learned MAC address
will be out of the influence of the aging time and can only be
deleted manually. The learned entries will be saved even the switch
is rebooted.
Context
- MIB
- TPLINK-PORTSECURITY-MIB
- OID
.1.3.6.1.4.1.11863.6.12.1.1.1.4- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- tpPortSecurityEntry
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'TPLINK-PORTSECURITY-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TPLINK-PORTSECURITY-MIB::tpPortSecurityLearnMode'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'TPLINK-PORTSECURITY-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TPLINK-PORTSECURITY-MIB::tpPortSecurityLearnMode.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'TPLINK-PORTSECURITY-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'TPLINK-PORTSECURITY-MIB::tpPortSecurityLearnMode'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | dynamic |
1 | static |
2 | permanent |