Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

diagnose netlink tcp

Use this command to view a list of TCP raw socket details, including:

  • sl — Kernel socket hash slot.
  • local_address — IP address and port number pair of the network interface in hexadecimal, such as DD01010A:0050.
  • rem_address — Remote host network interface and port number pair. If not connected, this will contain 00000000:0000.
  • st — TCP state code (e.g. OA for listening, 01 for established, or 06 for timeout wait)
  • tx_queue — Kernel memory usage by the transmission queue.
  • rx_queue — Kernel memory usage by the retransmission queues.
  • tr, tm-> when, retrnsmt — Kernel socket state debugging information.
  • uid — User ID of the socket’s creator (on FortiADC, always 0).
  • timeout — Connection timeout.
  • inode — Pseudo-file system i-node of the process.

Syntax

diagnose netlink tcp

Example

FortiADC-VM # diagnose netlink tcp

sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt ui d timeout inode

0: 86A0FEA9:0015 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2455 1 ffff88005ad16f40 100 0 0 10 0

1: 0100007F:0035 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2852 1 ffff88005c6acd80 100 0 0 10 0

2: 64901EAC:0035 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2855 1 ffff88005c6ad440 100 0 0 10 0

3: 64901EAC:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 38004000 1 ffff88005f4ce880 100 0 0 10 0

4: 86A0FEA9:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 38004001 1 ffff88005f4cc6c0 100 0 0 10 0

5: 0100007F:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 38004003 1 ffff88005f4ce1c0 100 0 0 10 0

6: 64901EAC:0017 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2451 1 ffff88005ad15b00 100 0 0 10 0

7: 86A0FEA9:0017 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2452 1 ffff88005ad161c0 100 0 0 10 0

8: 0100007F:0017 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2453 1 ffff88005ad16880 100 0 0 10 0

9: 0100007F:03B9 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2959 1 ffff88005c6adb00 100 0 0 10 0

 

[...]

diagnose netlink tcp

Use this command to view a list of TCP raw socket details, including:

  • sl — Kernel socket hash slot.
  • local_address — IP address and port number pair of the network interface in hexadecimal, such as DD01010A:0050.
  • rem_address — Remote host network interface and port number pair. If not connected, this will contain 00000000:0000.
  • st — TCP state code (e.g. OA for listening, 01 for established, or 06 for timeout wait)
  • tx_queue — Kernel memory usage by the transmission queue.
  • rx_queue — Kernel memory usage by the retransmission queues.
  • tr, tm-> when, retrnsmt — Kernel socket state debugging information.
  • uid — User ID of the socket’s creator (on FortiADC, always 0).
  • timeout — Connection timeout.
  • inode — Pseudo-file system i-node of the process.

Syntax

diagnose netlink tcp

Example

FortiADC-VM # diagnose netlink tcp

sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt ui d timeout inode

0: 86A0FEA9:0015 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2455 1 ffff88005ad16f40 100 0 0 10 0

1: 0100007F:0035 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2852 1 ffff88005c6acd80 100 0 0 10 0

2: 64901EAC:0035 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2855 1 ffff88005c6ad440 100 0 0 10 0

3: 64901EAC:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 38004000 1 ffff88005f4ce880 100 0 0 10 0

4: 86A0FEA9:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 38004001 1 ffff88005f4cc6c0 100 0 0 10 0

5: 0100007F:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 38004003 1 ffff88005f4ce1c0 100 0 0 10 0

6: 64901EAC:0017 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2451 1 ffff88005ad15b00 100 0 0 10 0

7: 86A0FEA9:0017 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2452 1 ffff88005ad161c0 100 0 0 10 0

8: 0100007F:0017 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2453 1 ffff88005ad16880 100 0 0 10 0

9: 0100007F:03B9 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2959 1 ffff88005c6adb00 100 0 0 10 0

 

[...]