Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

show system connections

date_range 12-Sep-24

Syntax

content_copy zoom_out_map
show system connections 
<extensive> 
<inet | inet6> 
<show-routing-instances>

Syntax (EX Series)

content_copy zoom_out_map
show system connections 
<extensive> 
<all-members>
<inet | inet6> 
<local>
<member member-id> 
<show-routing-instances>

Syntax (MX Series Router)

content_copy zoom_out_map
show system connections 
<extensive> 
<all-members>
<inet | inet6> 
<local>
<member member-id> 
<show-routing-instances>

Syntax (QFX Series)

content_copy zoom_out_map
show system connections 
<extensive> 
<inet> 
<infrastructure name> 
<interconnect-device name> 
<node-group name> 
<show-routing-instances>

Syntax (OCX Series)

content_copy zoom_out_map
show system connections 
<extensive> 
<inet> 
<show-routing-instances>

Syntax (Junos OS Evolved)

content_copy zoom_out_map
show system connections 
<inet | inet6> 
<node node-name>

Description

Display information about the active IP sockets on the Routing Engine. Use this command to verify which servers are active on a system and what connections are currently in progress.

Options

The following table lists all possible options for the show system connections command. The options that appear may vary depending on the platform and software release.

none

Display information about all active IP sockets on the Routing Engine.

extensive

(Optional) Display exhaustive system process information, which, for TCP connections, includes the TCP control block and maximum segment size (MSS). This option is useful for debugging TCP connections.

all-members

(Optional) Display system connection activity for all members of the Virtual Chassis configuration.

inet | inet6

(Optional) Display IPv4 connections or IPv6 connections, respectively.

infrastructure name

(QFabric systems only) (Optional) Display system connection activity for the fabric control Routing Engines or fabric manager Routing Engines.

interconnect-device name

(QFabric systems only) (Optional) Display system connection activity for the Interconnect device.

local

(Optional) Display system connection activity for the local Virtual Chassis member.

member member-id

(Optional) Display system connection activity for the specified member of the Virtual Chassis configuration. For EX4200 switches, replace member-id with a value from 0 through 9. For an MX Series Virtual Chassis, replace member-id with a value of 0 or 1.

node node-name

(Optional) Display system connection activity for the specified node.

node-group name

(QFabric systems only) (Optional) Display system connection activity for the Node group.

show-routing-instances

(Optional) Display routing instances.

Additional Information

Note:

The device calculates the TCP MSS value as described in RFC 6691.

Required Privilege Level

view

Output Fields

Table 1 describes the output fields for the show system connections command. Output fields are listed in the approximate order in which they appear.

Table 1: show system connections Output Fields

Field Name

Field Description

Proto

Protocol of the socket: IP, TCP, or UDP for IPv4 or IPv6.

Recv-Q

Number of input bytes received by the protocol and waiting to be processed by the application.

Send-Q

Number of output bytes sent by the application and waiting to be processed by the protocol.

Local Address

Local address and port of the socket, separated by a period. An asterisk (*) indicates that the bound address is the wildcard address. Server sockets typically have the wildcard address and a well-known port bound to them.

Foreign Address

Foreign address and port of the socket, separated by a period. An asterisk (*) indicates that the address or port is a wildcard.

Routing Instance

(Displayed only when the show-routing-instance option is used.) Routing instances associated with active IP sockets on the Routing Engine.

(state)

For TCP, the protocol state of the socket.

Sample Output

show system connections

content_copy zoom_out_map
user@host> show system connections             
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp        0      2  192.0.2.16.513       192.0.2.254.894    ESTABLISHED
tcp        0      0  192.0.2.16.513       192.0.2.195.945    ESTABLISHED
tcp        0      0  *.23                   *.*                    LISTEN
tcp        0      0  *.22                   *.*                    LISTEN
tcp        0      0  *.513                  *.*                    LISTEN
tcp00 *.514      *.*                    LISTEN
tcp 0 0*.21      *.*                    LISTEN
tcp00 *.79     *.*                    LISTEN
tcp 00 *.1023     *.*                    LISTEN
tcp 00 *.111     *.*                    LISTEN
udp00192.192.0.2.1634     192.0.2.249.2049
udp00192.192.0.2.1627     192.0.2.254.2049
udp00192.192.0.2.1371     192.0.2.195.2049
udp00*.*      *.*
udp00*.9999     *.*
udp00 *.161     *.*
udp00192.192.0.2.1039     192.0.2.16.1023
udp00192.192.0.2.1038     192.0.2.16.1023
udp 00 192.0.2.16.1037     192.0.2.16.1023
udp00 192.0.2.16.1036     192.0.2.16.1023
udp00*.1022     *.*
udp00*.1023     *.*
udp00*.111     *.*
udp00*.*      *.*

show system connections extensive

content_copy zoom_out_map
user@host> show system connections extensive             

Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address                                 Foreign Address                               (state)
tcp4       0      6  192.0.2.15.23                             192.0.2.138.3013                           ESTABLISHED
   sndsbcc:          6 sndsbmbcnt:        256  sndsbmbmax:     272000
sndsblowat:       2048 sndsbhiwat:      34000
   rcvsbcc:          0 rcvsbmbcnt:          0  rcvsbmbmax:     533120
rcvsblowat:          1 rcvsbhiwat:      66640
   proc id:          0  proc name:
       iss: 2566994072      sndup: 2566994491
    snduna: 2566994491     sndnxt: 2566994494      sndwnd:      64094
    sndmax: 2566994494    sndcwnd:       6589 sndssthresh:       2720
       irs:  236981199      rcvup:  236981325
    rcvnxt:  236981327     rcvadv:  237046862      rcvwnd:      66640
       rtt:  140058623       srtt:      15519        rttv:        908
    rxtcur:       1200   rxtshift:          0       rtseq: 2566994491
    rttmin:       1000  mss:       1360
     flags: SACK_PERMIT [0x2000200]
tcp4       0      0  10.255.165.93.179                             10.255.165.203.65141                          ESTABLISHED
   sndsbcc:          0 sndsbmbcnt:          0  sndsbmbmax:     131072
sndsblowat:       2048 sndsbhiwat:      16384
   rcvsbcc:          0 rcvsbmbcnt:          0  rcvsbmbmax:     131072
rcvsblowat:          1 rcvsbhiwat:      16384
   proc id:          0  proc name:
       iss: 2555961065      sndup: 2555995917
    snduna: 2555995917     sndnxt: 2555995917      sndwnd:      16384
    sndmax: 2555995917    sndcwnd:       1000 sndssthresh: 1073725440
       irs: 2123825753      rcvup: 2123860681
    rcvnxt: 2123860681     rcvadv: 2123877065      rcvwnd:      16384
       rtt:          0       srtt:       3309        rttv:         72
    rxtcur:       1200   rxtshift:          0       rtseq: 2555995898
    rttmin:       1000  mss:        500
     flags: REQ_SCALE RCVD_SCALE REQ_TSTMP RCVD_TSTMP SACK_PERMIT [0x3e0]
tcp4       0      0  10.255.165.203.65141                          10.255.165.93.179                             ESTABLISHED
   sndsbcc:          0 sndsbmbcnt:          0  sndsbmbmax:     131072
sndsblowat:       2048 sndsbhiwat:      16384
   rcvsbcc:          0 rcvsbmbcnt:          0  rcvsbmbmax:     131072
rcvsblowat:          1 rcvsbhiwat:      16384
   proc id:       5022  proc name:        rpd
       iss: 2123825753      sndup: 2123860662
    snduna: 2123860681     sndnxt: 2123860681      sndwnd:      16384
    sndmax: 2123860681    sndcwnd:       1000 sndssthresh: 1073725440
       irs: 2555961065      rcvup: 2555995917
    rcvnxt: 2555995917     rcvadv: 2556012301      rcvwnd:      16384
       rtt:          0       srtt:       3279        rttv:         22
    rxtcur:       1200   rxtshift:          0       rtseq: 2123860662
    rttmin:       1000  mss:        500
     flags: REQ_SCALE RCVD_SCALE REQ_TSTMP RCVD_TSTMP SACK_PERMIT [0x100003e0]
tcp4       0      0  10.255.165.203.179                            10.255.165.113.52404                          ESTABLISHED
   sndsbcc:          0 sndsbmbcnt:          0  sndsbmbmax:     131072
sndsblowat:       2048 sndsbhiwat:      16384
   rcvsbcc:          0 rcvsbmbcnt:          0  rcvsbmbmax:     131072
rcvsblowat:          1 rcvsbhiwat:      16384
   proc id:          0  proc name:
       iss: 1109297190      sndup: 1109332099
    snduna: 1109332118     sndnxt: 1109332118      sndwnd:      16384
    sndmax: 1109332118    sndcwnd:       1000 sndssthresh: 1073725440
       irs: 1476831634      rcvup: 1476866449
    rcvnxt: 1476866449     rcvadv: 1476882833      rcvwnd:      16384
       rtt:          0       srtt:       3235        rttv:         18
    rxtcur:       1200   rxtshift:          0       rtseq: 1109332099
    rttmin:       1000  mss:        500
     flags: REQ_SCALE RCVD_SCALE REQ_TSTMP RCVD_TSTMP SACK_PERMIT [0x3e0]

show system connections show-routing-instances

content_copy zoom_out_map
user@host> show system connections show-routing-instances             
Active Internet connections (including servers) (including routing-instances)
Proto Recv-Q Send-Q  Local Address          Foreign Address        Routing Instance       (state)
tcp4       0      0  192.0.2.204.23      192.0.2.19.4267      default                ESTABLISHED
tcp4       0      0  192.0.2.204.58540   10.209.7.138.23        default                ESTABLISHED
tcp4       0      0  192.0.2.204.23      192.0.2.19.1098      default                ESTABLISHED
tcp4       0      0  192.0.2.1.57668      192.0.2.1.179        default                ESTABLISHED
tcp4       0      0  192.0.2.1.179        192.0.2.1.49209      default                ESTABLISHED
tcp4       0      0  192.0.2.1.6234         192.0.2.17.1024        __juniper_private1__   ESTABLISHED
tcp4       0      0  192.0.2.4.9000         192.0.24.59103        __juniper_private1__   ESTABLISHED
tcp4       0      0  1192.0.2.4.59103        192.0.2.4.9000         __juniper_private1__   ESTABLISHED
tcp4       0      0  *.32012                *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.9000                 *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.33007                *.*                    __juniper_private2__   LISTEN
tcp46      0      0  *.179                  *.*                    default                LISTEN
tcp4       0      0  *.179                  *.*                    default                LISTEN
tcp4       0      0  *.6154                 *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.6153                 *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.7000                 *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.6152                 *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.6156                 *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.33005                *.*                    __juniper_private2__   LISTEN
tcp4       0      0  *.31343                *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.31341                *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.32003                *.*                    __juniper_private2__   LISTEN
tcp4       0      0  *.666                  *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.38                   *.*                    __juniper_private1__   LISTEN
tcp4       0      0  *.3221                 *.*                    default                LISTEN

show system connections | find sctp

content_copy zoom_out_map
user@host> show system connections | find sctp
Active SCTP associations (including servers)
Proto  Type  Local Address          Foreign Address        (state)
sctp4  1to1  30.30.30.1.50000       20.20.20.2.62324       ESTABLISHED
             20.20.20.1.50000       30.30.30.2.62324

Release Information

Command introduced before Junos OS Release 7.4.

Options extensive and show-routing-instance deprecated in Junos OS Evolved Release 17.3.

node option introduced in Junos OS Evolved Release 18.3R1.

footer-navigation