Инструменты пользователя

Инструменты сайта


ss

ss

ss - сетевая статистика

# ss -s
Total: 3363 (kernel 3693)
TCP:   809 (estab 467, closed 120, orphaned 0, synrecv 0, timewait 118/0), ports 664

Transport Total     IP        IPv6
*	  3693      -         -        
RAW	  0         0         0        
UDP	  1735      1735      0        
TCP	  689       688       1        
INET	  2424      2423      1        
FRAG	  0         0         0   
  • Вывести все TCP соединения
    ss -t -a
  • Вывести все UDP соединения
    # ss -u -a
    State      Recv-Q Send-Q      Local Address:Port          Peer Address:Port   
    UNCONN     0      0           10.161.85.55:49408                    *:*       
    UNCONN     0      0           10.161.85.55:48768                    *:*       
    UNCONN     276    0           10.161.85.55:21888                    *:*       

Task: Display All Established SMTP Connections

# ss -o state established '( dport = :smtp or sport = :smtp )'

Task: Display All Established HTTP Connections

# ss -o state established '( dport = :http or sport = :http )'

Task: Find All Local Processes Connected To X Server

# ss -x src /tmp/.X11-unix/*

Task: List All The Tcp Sockets in State FIN-WAIT-1

List all the TCP sockets in state -FIN-WAIT-1 for our httpd to network 202.54.1/24 and look at their timers:

# ss -o state fin-wait-1 '( sport = :http or sport = :https )' dst 202.54.1/24
ss.txt · Последние изменения: 2010/12/17 18:32 (внешнее изменение)

Яндекс.Метрика