Product Documentation

ns connectiontable

Sep 12, 2016

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> = ( && | || )

<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.

connProperties

flags used to store connection properties like client, server etc.

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.

maxRcvbuf

Maximum receive window that application advertizes to peer.

linkmaxRcvbuf

Maximum receive window that application advertizes to peer in linked connection.

RxQsize

Total number of bytes in Netscaler receive buffer. This includes bytes being processed / policy related data / stored in application buffer.

linkRxQsize

Total number of bytes in Netscaler receive buffer for linked connection. This includes bytes being processed / policy related data / stored in application buffer.

maxSndbuf

Maximum send window that application can process and send.

linkmaxSndbuf

Maximum send window that application can process and send in linked connection.

TxQsize

Total number of bytes in Netscaler send buffer. This includes both inflight and queued bytes in netscaler.

linkTxQsize

Total number of bytes in Netscaler send buffer for linked connection. This includes both inflight and queued bytes in netscaler.

flavor

TCP congestion control algorithm.

linkflavor

TCP congestion control algorithm for a linked connection.

bwEstimate

TCP Bandwidth Estimate

linkbwEstimate

TCP Bandwidth Estimate for a linked connection

rttMin

Minimum Round Trip Time for the connection.

linkrttMin

Minimum Round Trip Time for linked connection.

name

Name of TCP profile attached to the connection.

linkName

Name of TCP profile attached to the connection.

tcpmode

TCP Optimization modes TRANSPARENT / ENDPOINT.

linktcpmode

TCP Optimization modes TRANSPARENT / ENDPOINT for linked connection.

realTimeRtt

Real Time / Instantaneous round trip time.

linkrealTimeRtt

Real Time / Instantaneous round trip time for linked connection.

sndBuf

send buffer size.

linksndBuf

Send buffer size for linked connection.

nsbTcpwaitQ

Number of packets in TCP wait queue.

linknsbTcpwaitQ

Number of packets in wait queue for linked connection.

nsbRetxQ

Number of packets in retransmission queue.

linknsbRetxQ

Number of packets in retransmission queue for linked connection.

sackblocks

Number of sack blocks attached to the connection.

linksackblocks

Number of sack blocks attached in linked connection.

congstate

TCP congestion state.

linkcongstate

TCP congestion state for a linked connection.

sndrecoverle

Sequence Number denoting end of fast recovery.

linksndrecoverle

Sequence Number denoting end of fast recovery for linked connection.

devno

stateflag