tcpConnectionState
TCP-MIB ·
.1.3.6.1.2.1.6.19.1.7
Object
column r/w
Enumeration
The state of this TCP connection.
The value listen(2) is included only for parallelism to the
old tcpConnTable and should not be used. A connection in
LISTEN state should be present in the tcpListenerTable.
The only value that may be set by a management station is
deleteTCB(12). Accordingly, it is appropriate for an agent
to return a `badValue' response if a management station
attempts to set this object to any other value.
If a management station sets this object to the value
deleteTCB(12), then the TCB (as defined in [RFC793]) of
the corresponding connection on the managed node is
deleted, resulting in immediate termination of the
connection.
As an implementation-specific option, a RST segment may be
sent from the managed node to the other TCP endpoint (note,
however, that RST segments are not sent reliably).
Context
- MIB
- TCP-MIB
- OID
.1.3.6.1.2.1.6.19.1.7- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- tcpConnectionEntry
- Groups
- 1
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 'TCP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TCP-MIB::tcpConnectionState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'TCP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TCP-MIB::tcpConnectionState.<tcpConnectionLocalAddressType>.<tcpConnectionLocalAddress>.<tcpConnectionLocalPort>.<tcpConnectionRemAddressType>.<tcpConnectionRemAddress>.<tcpConnectionRemPort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'TCP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'TCP-MIB::tcpConnectionState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | closed |
2 | listen |
3 | synSent |
4 | synReceived |
5 | established |
6 | finWait1 |
7 | finWait2 |
8 | closeWait |
9 | lastAck |
10 | closing |
11 | timeWait |
12 | deleteTCB |
Conformance
Member of
Compliance refinements
Values:
closed(1), listen(2), synSent(3), synReceived(4), established(5), finWait1(6), finWait2(7), closeWait(8), lastAck(9), closing(10), timeWait(11)
Write access is not required, nor is support for the value
deleteTCB (12).
deleteTCB (12).