Использование netstat для получения информации о конфигурации и активностях сети

Утилита netstat предназначена для получения детальной информации о конфигурации и активностях сети (использовании сокетов маршрутизации сетевых интерфейсах сетевой статистике и т.п.)

  • -n — показывать адреса в численном виде не пытаясь поименовать хосты и порты
  • -a — показывать информацию обо всех сокетах
  • -r — показать таблицу маршрутизации
  • -i — показать статистику по сетевым интерфейсам
  • -s — показать статистику по сетевым протоколам
  • -p — показать идентификаторы процессов и названия приложений использующих сокеты

# netstat -s

Ip:    5870405 total packets received    0 forwarded    0 incoming packets discarded    5870375 incoming packets delivered    4828182 requests sent out    50 reassemblies required    25 packets reassembled okIcmp:    407 ICMP messages received    1 input ICMP message failed.    ICMP input histogram:        destination unreachable: 47        timeout in transit: 1        echo requests: 358        echo replies: 1    509 ICMP messages sent    0 ICMP messages failed    ICMP output histogram:        destination unreachable: 151        echo replies: 358IcmpMsg:        InType0: 1        InType3: 47        InType8: 358        InType11: 1        OutType0: 358        OutType3: 151Tcp:    295045 active connections openings    367819 passive connection openings    1695 failed connection attempts    13591 connection resets received    10 connections established    5804912 segments received    6911837 segments send out    75691 segments retransmited    62 bad segments received.    27177 resets sentUdp:    64885 packets received    151 packets to unknown port received.    15 packet receive errors    64939 packets sentUdpLite:TcpExt:    6827 invalid SYN cookies received    139 resets received for embryonic SYN_RECV sockets    317168 TCP sockets finished time wait in fast timer    110 packets rejects in established connections because of timestamp    20617 delayed acks sent    391 delayed acks further delayed because of locked socket    Quick ack mode was activated 4331 times    573090 packets directly queued to recvmsg prequeue.    1388 packets directly received from backlog    5611221 packets directly received from prequeue    219655 packets header predicted    6155 packets header predicted and directly queued to user    2319434 acknowledgments not containing data received    1019164 predicted acknowledgments    54 times recovered from packet loss due to fast retransmit    13274 times recovered from packet loss due to SACK data    14 bad SACKs received    Detected reordering 64 times using FACK    Detected reordering 26 times using SACK    Detected reordering 9 times using reno fast retransmit    Detected reordering 49 times using time stamp    59 congestion windows fully recovered    293 congestion windows partially recovered using Hoe heuristic    TCPDSACKUndo: 1396    390 congestion windows recovered after partial ack    17361 TCP data loss events    TCPLostRetransmit: 958    72 timeouts after reno fast retransmit    3303 timeouts after SACK recovery    1965 timeouts in loss state    29620 fast retransmits    1127 forward retransmits    18022 retransmits in slow start    12676 other TCP timeouts    TCPRenoRecoveryFail: 16    1769 sack retransmits failed    3 times receiver scheduled too late for direct processing    4451 DSACKs sent for old packets    20 DSACKs sent for out of order packets    7391 DSACKs received    113 DSACKs for out of order packets received    11822 connections reset due to unexpected data    522 connections reset due to early user close    623 connections aborted due to timeout    TCPSACKDiscard: 3    TCPDSACKIgnoredOld: 2496    TCPDSACKIgnoredNoUndo: 2209    TCPSpuriousRTOs: 252    TCPSackShifted: 38269    TCPSackMerged: 47681    TCPSackShiftFallback: 40514    TCPDeferAcceptDrop: 88699    IPReversePathFilter: 5IpExt:    InMcastPkts: 11    OutMcastPkts: 13    InOctets: 734609071    OutOctets: 866110771    InMcastOctets: 2143    OutMcastOctets: 2223

Оригинал статьи http://pingvinoff.net/2009/01/09/komanda-netstat/

0 комментариев

Оставить комментарий