home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

show session-table

Shows the dataplane session table details.

show session-table [ source src-addr | statistics ]
src-address
Source IP address. Filters the output based on either a source IP address or a source IP address combined with a port.

Operational mode

Use this command to view information on the dataplane session table.

The following example shows how to display information about the complete session table.

vyatta@vyatta% show session-table
TCP state codes: SS - SYN SENT, SR - SYN RECEIVED, ES - ESTABLISHED,
                 FW - FIN WAIT, CW - CLOSE WAIT, LA - LAST ACK,
                 TW - TIME WAIT, CL - CLOSE, LI - LISTEN

CONN ID         Source                          Destination                     Protocol        TIMEOUT Intf            Parent
22              10.0.1.1:2601                   10.0.2.1:100                    tcp [6] SS      25      dp0s11  0
23              10.0.1.1:2602                   10.0.2.1:100                    tcp [6] SS      26      dp0s11  0
24              10.0.1.2:2603                   10.0.2.1:100                    tcp [6] SS      27      dp0s11  0
25              10.0.1.2:2604                   10.0.2.1:100                    tcp [6] SS      28      dp0s11  0

The following example shows how to display details of the session table filtered by source address.

vyatta@vyatta% show session-table source 10.0.1.2
TCP state codes: SS - SYN SENT, SR - SYN RECEIVED, ES - ESTABLISHED,
                 FW - FIN WAIT, CW - CLOSE WAIT, LA - LAST ACK,
                 TW - TIME WAIT, CL - CLOSE, LI - LISTEN

CONN ID         Source                          Destination                     Protocol        TIMEOUT Intf            Parent
24              10.0.1.2:2603                   10.0.2.1:100                    tcp [6] SS      27      dp0s11  0
25              10.0.1.2:2604                   10.0.2.1:100                    tcp [6] SS      28      dp0s11  0

The following example shows how to display details of the session table filtered by source address and port.

vyatta@vyatta% show session-table source 10.0.1.1:2602
TCP state codes: SS - SYN SENT, SR - SYN RECEIVED, ES - ESTABLISHED,
                 FW - FIN WAIT, CW - CLOSE WAIT, LA - LAST ACK,
                 TW - TIME WAIT, CL - CLOSE, LI - LISTEN

CONN ID         Source                          Destination                     Protocol        TIMEOUT Intf            Parent
23              10.0.1.1:2602                   10.0.2.1:100                    tcp [6] SS      26      dp0s11  0

The following example shows how to display a summary of the session table statistics.

vyatta@vyatta% show session-table statistics
Available (percentage): 984064 (93.85%)
Used (percentage): 64512 (6.15%)
NATed: 64512
Detailed (by state):
TCP
SYN SENT: 0
SYN RECEIVED: 0
ESTABLISHED: 0
FIN WAIT: 0
CLOSE WAIT: 0
LAST ACK: 0
TIME WAIT: 0
CLOSE: 0
LISTEN: 0
UDP
NEW: 0
ESTABLISHED: 64512
CLOSE: 0
Other
NEW: 0
ESTABLISHED: 0
CLOSE: 0