fltStmtAction

ZHONE-COM-IP-FILTER-MIB · .1.3.6.1.4.1.5504.4.1.8.3.1.17

Object

column r/w Bits
Filter statement action.  The bits set in this object specify
actions to take on packets matching this statement.  Supported
actions are:
              
    reset(0)   : Return a TCP reset packet to the packet sender
                 and drop the packet.  This cannot be specified
                 with permit.
    permit(1)  : Stop filtering the packet and allow it to be
                 sent on the associated interface.  This cannot
                 be specified with deny.
    deny(2)    : Stop filtering the packet and discard it.  This
                 cannot be specified with permit.
    forward(3) : Forward the packet the IP address specified in
                 fltStmtActionArg.
    reject(4)  : Return an ICMP destination unreachable packet
                 (type 3) to the packet sender with code 13
                 (communication administratively prohibited).
                 This cannot be specified permit.
    log(5)     : Write the packet to the log stream.
              
There are some mutually exclusive bits: reset(0) and permit(1),
permit(1) and deny(2), permit(1) and reject(4).  No bits set
implies to continue filtering on the packet.

Context

MIB
ZHONE-COM-IP-FILTER-MIB
OID
.1.3.6.1.4.1.5504.4.1.8.3.1.17
Type
column
Access
readwrite
Status
current
Parent
filterStatementEntry

Walk 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 'ZHONE-COM-IP-FILTER-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ZHONE-COM-IP-FILTER-MIB::fltStmtAction'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ZHONE-COM-IP-FILTER-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ZHONE-COM-IP-FILTER-MIB::fltStmtAction.<fltSpecIndex>.<fltStmtIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ZHONE-COM-IP-FILTER-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ZHONE-COM-IP-FILTER-MIB::fltStmtAction'

Syntax

Bits

Values & Constraints

Enumerated Values
0reset
1permit
2deny
3forward
4reject
5log