swPortClearStatistics
STAND-ALONE-ETHERNET-SWITCH-MIB ·
.1.3.6.1.4.1.437.1.1.3.3.1.1.26
Object
column mandatory
r/w
Enumeration
Set to clear(2) to zero out all statistics associated with the port. Per-port statistics are kept in this swPortTable as well as in the swPortRxStatTable, swPortTxStatTable, swPortTxCollTable, dot1dBasePortTable, and dot1dTpPortTable. Setting this object to noClear(1) has no effect. This object always returns noClear(1) when read.
Context
- MIB
- STAND-ALONE-ETHERNET-SWITCH-MIB
- OID
.1.3.6.1.4.1.437.1.1.3.3.1.1.26- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- swPortEntry
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 'STAND-ALONE-ETHERNET-SWITCH-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'STAND-ALONE-ETHERNET-SWITCH-MIB::swPortClearStatistics'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'STAND-ALONE-ETHERNET-SWITCH-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'STAND-ALONE-ETHERNET-SWITCH-MIB::swPortClearStatistics.<swPortIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'STAND-ALONE-ETHERNET-SWITCH-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'STAND-ALONE-ETHERNET-SWITCH-MIB::swPortClearStatistics'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | noClear |
2 | clear |