Skip to content

ns connectiontable

The following operations can be performed on "ns connectiontable":

show ns connectiontable

Displays the current TCP/IP connection table.

Synopsys

show ns connectiontable [<filterexpression>] [-detail <detail> ...] [-Listen]

Arguments

filterexpression

The maximum length of filter expression is 255 and it can be of following format:

<expression> [<relop> <expression>]

<relop> = ( && | || )

connectiontable supports two types of filter expressions:

Classic Expressions:

[Note: Classic Expressions are not supported in non-default partitions]

<expression> = the expression string in the format:

<qualifier> <operator> <qualifier-value>

<qualifier> = SOURCEIP.

<qualifier-value> = A valid IP address.

<qualifier> = SOURCEPORT.

<qualifier-value> = A valid port number.

<qualifier> = DESTIP.

<qualifier-value> = A valid IP address.

<qualifier> = DESTPORT.

<qualifier-value> = A valid port number.

<qualifier> = IP.

<qualifier-value> = A valid IP address.

<qualifier> = PORT.

<qualifier-value> = A valid port number.

<qualifier> = IDLETIME.

<qualifier-value> = A positive integer indicating the idle time.

<qualifier> = SVCNAME.

<qualifier-value> = The name of a service.

<qualifier> = VSVRNAME.

<qualifier-value> = The name of a vserver.

<qualifier> = CONNID

<qualifier-value> = A valid PCB dev number.

<qualifier> = INTF

<qualifier-value> = A valid interface id in the form of x/y

            (n/x/y in case of cluster interface).

<qualifier> = VLAN

<qualifier-value> = A valid VLAN ID.

<qualifier> = STATE.

<qualifier-value> = ( CLOSE_WAIT | CLOSED | CLOSING | ESTABLISHED |

    FIN_WAIT_1 | FIN_WAIT_2 | LAST_ACK | LISTEN |

    SYN_RECEIVED | SYN_SENT | TIME_WAIT )

<qualifier> = SVCTYPE.

<qualifier-value> = ( HTTP | FTP | TCP | UDP | SSL |

    SSL_BRIDGE | SSL_TCP | NNTP | RPCSVR | RPCSVRS |

    RPCCLNT | DNS | ADNS | SNMP | RTSP | DHCPRA | ANY |

    MONITOR | MONITOR_UDP | MONITOR_PING | SIP_UDP | MYSQL | MSSQL | UNKNOWN )

<operator> = ( == | eq | != | neq | > | gt | < | lt | >= |

    ge | <= | le | BETWEEN )

Default Expressions:

<expression> =:

CONNECTION.<qualifier>.<qualifier-method>.(<qualifier-value>)

<qualifier> = SRCIP

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = A valid IPv4 address

example = CONNECTION.SRCIP.EQ(127.0.0.1)

<qualifier> = DSTIP

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = A valid IPv4 address.

example = CONNECTION.DSTIP.EQ(127.0.0.1)

<qualifier> = IP

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = A valid IPv4 address.

example = CONNECTION.IP.EQ(127.0.0.1)

<qualifier> = SRCIPv6

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = A valid IPv6 address.

example = CONNECTION.SRCIPv6.EQ(2001:db8:0:0:1::1)

<qualifier> = DSTIPv6

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = A valid IPv6 address.

example = CONNECTION.DSTIPv6.EQ(2001:db8:0:0:1::1)

<qualifier> = IPv6

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = A valid IPv6 address.

example = CONNECTION.IPv6.EQ(2001:db8:0:0:1::1)

<qualifier> = SRCPORT

<qualifier-method> = [ EQ | NE | GT | GE | LT | LE

                    | BETWEEN ]

<qualifier-value>  = A valid port number.

example = CONNECTION.SRCPORT.EQ(80)

<qualifier> = DSTPORT

<qualifier-method> = [ EQ | NE | GT | GE | LT | LE

                    | BETWEEN ]

<qualifier-value>  = A valid port number.

example = CONNECTION.DSTPORT.EQ(80)

<qualifier> = PORT

<qualifier-method> = [ EQ | NE | GT | GE | LT | LE

                    | BETWEEN ]

<qualifier-value>  = A valid port number.

example = CONNECTION.PORT.EQ(80)

<qualifier> = SVCNAME

<qualifier-method> = [ EQ | NE | CONTAINS | STARTSWITH

                    | ENDSWITH ]

<qualifier-value>  = service name.

example = CONNECTION.SVCNAME.EQ("name")

<qualifier> = LB_VSERVER.NAME

<qualifier-method> = [ EQ | NE | CONTAINS | STARTSWITH

                    | ENDSWITH ]

<qualifier-value>  = LB vserver name.

example = CONNECTION.LB_VSERVER.NAME.EQ("name")

<qualifier> = CS_VSERVER.NAME

<qualifier-method> = [ EQ | NE | CONTAINS | STARTSWITH

                    | ENDSWITH ]

<qualifier-value>  = CS vserver name.

example = CONNECTION.CS_VSERVER.NAME.EQ("name")

<qualifier> = INTF

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = A valid interface id in the form of

            x/y (n/x/y in case of cluster interface).

examle = CONNECTION.INTF.EQ("0/1/1")

<qualifier> = VLANID

<qualifier-method> = [ EQ | NE | GT | GE | LT | LE

                    | BETWEEN ]

<qualifier-value>  = A valid VLAN ID.

example = CONNECTION.VLANID.EQ(0)

<qualifier> = CONNID

<qualifier-method> = [ EQ | NE | GT | GE | LT | LE

                    | BETWEEN ]

<qualifier-value>  = A valid PCB dev number.

example = CONNECTION.CONNID.EQ(0)

<qualifier> = PPEID

<qualifier-method> = [ EQ | NE | GT | GE | LT | LE

                    | BETWEEN ]

<qualifier-value>  = A valid core ID.

  example = CONNECTION.PPEID.EQ(0)

<qualifier> = IDLETIME

<qualifier-method> = [ EQ | NE | GT | GE | LT | LE

                    | BETWEEN ]

<qualifier-value>  = A positive integer indicating the

               idletime.

example = CONNECTION.IDLETIME.LT(100)

<qualifier> = TCPSTATE

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = ( CLOSE_WAIT | CLOSED | CLOSING |

       ESTABLISHED | FIN_WAIT_1 | FIN_WAIT_2 | LAST_ACK |

    LISTEN | SYN_RECEIVED | SYN_SENT | TIME_WAIT |

    NOT_APPLICABLE)

example = CONNECTION.TCPSTATE.EQ(LISTEN)

<qualifier> = SERVICE_TYPE

<qualifier-method> = [ EQ | NE ]

<qualifier-value>  = ( SVC_HTTP | FTP | TCP | UDP | SSL |

    SSL_BRIDGE | SSL_TCP | NNTP | RPCSVR | RPCSVRS |

    RPCCLNT | SVC_DNS | ADNS | SNMP | RTSP | DHCPRA | ANY|

    MONITOR | MONITOR_UDP | MONITOR_PING | SIP_UDP |

    SVC_MYSQL | SVC_MSSQL | SERVICE_UNKNOWN )

example = CONNECTION.SERVICE_TYPE.EQ(ANY)

<qualifier> = TRAFFIC_DOMAIN_ID

<qualifier-method> = [ EQ | NE | GT | GE | LT | LE

                    | BETWEEN ]

<qualifier-value>  = A valid traffic domain ID.

example = CONNECTION.TRAFFIC_DOMAIN_ID.EQ(0)

common usecases:

Filtering out loopback connections and view present

connections through netsclaer

show connectiontable "CONNECTION.IP.NEQ(127.0.0.1) &&

CONNECTION.TCPSTATE.EQ(ESTABLISHED)" -detail full

show connections from a particular sourceip and targeted

to port 80

show connectiontable "CONNECTION.SRCIP.EQ(10.102.1.91) &&

CONNECTION.DSTPORT.EQ(80)"

show connection particular to a service and its linked

client connections

show connectiontable "CONNECTION.SVCNAME.EQ("S1")"

-detail link

show connections for a particular servicetype(e.g.http)

show connectiontable "CONNECTION.SERVICE_TYPE.EQ(TCP)"

viewing connections that have been idle for a long time

show connectiontable "CONNECTION.IDLETIME.GT(100)"

show connections for a particular interface and vlan

show connectiontable "CONNECTION.INTF.EQ("1/1") &&

CONNECTION.VLANID.EQ(1)"

detail

Specify display options for the connection table.

  • LINK - Displays the linked PCB (Protocol Control Block).

  • NAME - Displays along with the service name.

  • CONNFAILOVER - Displays PCB with connection failover.

  • FULL - Displays all available details.

Listen

Display listening services only

Outputs

SOURCEIP

Source IP of the connection.

SOURCEPORT

Source port of the connection.

DESTIP

Destination IP of the connection.

DESTPORT

Destination port of the connection.

SVCTYPE

Protocol supported by the connection.

IDLETIME

Time since last activity was detected on the connection.

STATE

Current TCP/IP state of the connection.

linkSourceIP

Source IP of the link connection.

linkSourcePort

Source port of the link connection.

linkDestIP

Destination IP of the link connection.

linkDestPort

Destination port of the link connection.

linkServiceType

Protocol supported by the link connection.

linkIdleTime

Time since last activity was detected on link connection.

linkState

TCP/IP current state of link connection.

entityName

NetScaler entity name for the connection.

linkEntityName

NetScaler entity name for link connection.

connectionNumber

Connection number

linkConnectionNumber

Link connection number

connid

Unique transaction number for the connection.

linkConnid

Unique transaction number for the peer connection.

filterFlags

flags used to store display options

optionFlags

flags used to store TCP options like Sack, WS

nsWSvalue

netscaler window scaling value

peerWSvalue

peer window scaling value

mss

Client side MSS for the connection - used in server SYN.

retxRetryCnt

Retransmission retry count for the connection.

rcvWnd

Received Advertised Window for the connection.

advWnd

Sent advertised window for the connection.

sndCwnd

sent congestion window for the connection.

iss

Initial send sequence number for the connection.

irs

Initial receive sequence number for the connection.

rcvNxt

next expecting seq number for the connection.

maxAck

current running max ack sent for the connection.

sndNxt

next bytes seq number for the connection.

sndUnAck

Most recently received ACK for the connection.

httpEndSeq

HTTP parsing tracking seq number for the connection.

httpState

HTTP Protocol state for the connection.

trCount

Max reuests allowed per connection.

priority

priority of the connection.

httpReqVer

current HTTP request version on the connection.

httpRequest

current HTTP request type on the connection.

httpRspCode

current response type on the connection.

rttSmoothed

smoothed RTT value of the connection.

rttVariance

RTT variance for the connection.

outoforderPkts

held packets on the connection.

count

linkOptionFlag

Link connection's TCP option flag for Sack and WS

linknsWSvalue

Link connection-s netscaler window scaling value

linkpeerWSvalue

Link connection-s peer netscaler window scaling value

linkMSS

Client side MSS for the Link connection - used in server SYN

linkRetxRetryCnt

Retransmission retry count for the Link connection.

linkRcvWnd

Received Advertised Window for the Link connection.

linkAdvWnd

Sent advertised window for the Link connection.

linkSndCwnd

Send congestion window for the Link connection.

linkISS

Initial send seq number for the Link connection.

linkIRS

Initial receive seq number for the Link connection.

linkRcvNxt

Next expecting seq number on the Link connection.

linkMaxAck

Current running maximum ack sent on the Link connection.

linkSndNxt

Next bytes seq number for the Link connection.

linkSndUnAck

Most recently received ACK on the Link connection.

linkHttpEndSeq

HTTP parsing tracking seq number on the Link connection.

linkHttpState

HTTP protocol state on the Link connection.

linkTrCount

Max requests per connection for Link connection.

linkPriority

Priority for the Link connection.

linkHttpReqVer

HTTP current request version on Link connection.

linkHttpReq

HTTP current request type on Link connection.

linkHttpRspCode

Current response type on link connection.

linkRttSmoothed

Smoothed RTT value on link connection.

linkRttVariance

RTT variance on Link connection.

linkHeldPkts

Held packets on Link connection.

targetnodeidnnm

NNM connection target node ID.

sourcenodeidnnm

NNM connection source node ID.

channelidnnm

NNM connection channel ID.

msgversionnnm

nnm message version.

td

Traffic Domain Id.

devno

stateflag

Was this article helpful?