This task describes how to view all the network addresses. Along with the local address, it provides the protocol version in use, the remote address, the sizes of the send window and send queue, the sizes of the receive window and receive queue, and the internal state of the address.
# PSL Serial No.: ########## <NOT INTERACTIVE> List network address TCP: IPv4 Local Address Remote Address Swind Send-Q Rwind Recv-Q State -------------------- -------------------- ----- ------ ----- ------ ------- 172.19.203.130.32785 172.19.203.130.32774 32768 0 32768 0 CLOSE_WAIT 127.0.0.1.32788 127.0.0.1.32783 32768 0 32768 0 ESTABLISHED 127.0.0.1.32783 127.0.0.1.32788 32768 0 32768 0 ESTABLISHED 127.0.0.1.32791 127.0.0.1.32790 32768 0 32768 0 ESTABLISHED Active UNIX domain sockets Address Type Vnode Conn Local Addr Remote Addr 30000b8fa08 stream-ord 30000a3d6e8 00000000 /tmp/.X11-unix/X0 30000b8fba8 stream-ord 00000000 00000000 30000b8fd48 stream-ord 30000b5a7f8 00000000 /tmp/jd_sockV6
The output has the following format. Following table defines each field.
TCP: IPv4 Local Address Remote Address Swind Send-Q Rwind Recv-Q State ... Active UNIX domain sockets Address Type Vnode Conn Local Addr Remote Addr
List Network Addresses Command Output Format
Field | Description |
---|---|
TCP | The version of TCP/IP |
Local Address | Local address expressed as a number |
Remote Address | Remote address expressed as a number |
Swind | Size of the send window in bytes |
Send-Q | The count of bytes not acknowledged by the remote host |
Rwind | Size of the receive window in bytes |
Recv-Q | The count of bytes not copied by the user program connected to this socket |
State | Internal state of the socket ESTABLISHED – Established connection SYN_SENT – Actively attempting to establish a connection SYN_RECV – Being initialized. FIN_WAIT1 – Closed, and the connection is shutting down FIN_WAIT2 – Closed, and the socket is waiting for a shutdown from the remote end TIME_WAIT – Waiting after close for remote shutdown retransmission CLOSED – Not being used CLOSE_WAIT – The remote end has shut down, waiting for the socket to close LAST_ACK – The remote end shut down, the socket is closed, and waiting for acknowledgement LISTEN – Listening for incoming connections CLOSING – Both sockets are shut down but all the data sent has not been sent UNKNOWN – State is unknown |
Active UNIX Domain Sockets | |
Address | Address of the socket |
Type | Types of socket (values vary based on platform for instance stream can be represented as SOCKET_STREAM on Linux and Stream_ord on Solaris)
|
Vnode | Virtual node |
Conn | Connection type |
Local Addr | The local hostname and port number of the socket |
Remote Addr | Remote address |