位置: 编程技术 - 正文
推荐整理分享Linux系统下查看网络接口数据信息的命令总结(linux查看du),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:linux查看vg,linux查看hz,linux chakan,linux查看du,linux查看du,linux命令查看,linux命令查看,linux命令查看,内容如对您有帮助,希望把文章链接给更多的朋友!
监视网络接口TCP状态信息数据有多种工具或命令。下面举例一些:nstat命令复制代码代码如下:# nstat#kernelIpInReceives 0.0IpInDelivers 0.0IpOutRequests 0.0IcmpInErrors 0.0IcmpInCsumErrors 0.0IcmpInDestUnreachs 2 0.0IcmpInTimeExcds 0.0IcmpInParmProbs 0.0IcmpInRedirects 1 0.0IcmpInEchoReps 0.0IcmpInTimestamps 0.0IcmpOutErrors 0.0IcmpOutTimeExcds 0.0IcmpOutEchoReps 0.0IcmpOutTimestamps 0.0IcmpMsgInType0 0.0IcmpMsgInType3 0.0IcmpMsgInType4 1 0.0IcmpMsgInType8 0.0IcmpMsgInType 0.0IcmpMsgOutType0 0.0IcmpMsgOutType3 0.0IcmpMsgOutType8 0.0TcpActiveOpens 0.0TcpPassiveOpens 0.0TcpAttemptFails 0.0TcpEstabResets 0.0TcpInSegs 0.0TcpOutSegs 0.0TcpRetransSegs 0.0TcpInErrs 0.0TcpOutRsts 0.0UdpInDatagrams 0.0UdpNoPorts 0.0UdpOutDatagrams 0.0Ip6InReceives 6 0.0Ip6InNoRoutes 6 0.0Ip6OutRequests 9 0.0Ip6OutNoRoutes 0.0Ip6OutMcastPkts 0.0Ip6InOctets 0.0Ip6OutOctets 0.0Ip6OutMcastOctets 0.0Ip6InNoECTPkts 6 0.0Icmp6OutMsgs 9 0.0Icmp6OutRouterSolicits 3 0.0Icmp6OutNeighborSolicits 1 0.0Icmp6OutMLDv2Reports 5 0.0Icmp6OutType 3 0.0Icmp6OutType 1 0.0Icmp6OutType 5 0.0TcpExtSyncookiesFailed 0.0TcpExtEmbryonicRsts 0.0TcpExtPruneCalled 0.0TcpExtTW 0.0TcpExtPAWSEstab 0.0TcpExtDelayedACKs 0.0TcpExtDelayedACKLocked 0.0TcpExtDelayedACKLost 0.0TcpExtListenDrops 0.0TcpExtTCPPrequeued 0.0TcpExtTCPDirectCopyFromBacklog 0.0TcpExtTCPDirectCopyFromPrequeue 0.0TcpExtTCPHPHits 0.0TcpExtTCPHPHitsToUser 0.0TcpExtTCPPureAcks 0.0TcpExtTCPHPAcks 0.0TcpExtTCPSackRecovery 0.0TcpExtTCPFACKReorder 1 0.0TcpExtTCPSACKReorder 8 0.0TcpExtTCPTSReorder 0.0TcpExtTCPFullUndo 1 0.0TcpExtTCPPartialUndo 0.0TcpExtTCPDSACKUndo 1 0.0TcpExtTCPLossUndo 0.0TcpExtTCPLostRetransmit 0.0TcpExtTCPSackFailures 0.0TcpExtTCPLossFailures 0.0TcpExtTCPFastRetrans 0.0TcpExtTCPForwardRetrans 0.0TcpExtTCPSlowStartRetrans 0.0TcpExtTCPTimeouts 0.0TcpExtTCPLossProbes 0.0TcpExtTCPLossProbeRecovery 0.0TcpExtTCPSackRecoveryFail 0.0TcpExtTCPRcvCollapsed 0.0TcpExtTCPDSACKOldSent 0.0TcpExtTCPDSACKOfoSent 0.0TcpExtTCPDSACKRecv 0.0TcpExtTCPAbortOnData 0.0TcpExtTCPAbortOnClose 0.0TcpExtTCPAbortOnTimeout 0.0TcpExtTCPDSACKIgnoredNoUndo 0.0TcpExtTCPSpuriousRTOs 0.0TcpExtTCPSackShifted 0.0TcpExtTCPSackMerged 0.0TcpExtTCPSackShiftFallback 0.0TcpExtTCPRcvCoalesce 0.0TcpExtTCPOFOQueue 0.0TcpExtTCPOFOMerge 0.0TcpExtTCPChallengeACK 0.0TcpExtTCPSYNChallenge 0.0IpExtInNoRoutes 2 0.0IpExtInOctets 0.0IpExtOutOctets 0.0IpExtInNoECTPkts 0.0IpExtInECT0Pkts 0.0IpExtInCEPkts 3 0.0
ss命令复制代码代码如下:# ss -sTotal: (kernel )TCP: (estab , closed , orphaned 0, synrecv 0, timewait /0), ports 0 Transport Total IP IPv6* - - RAW 0 0 0 UDP 3 2 1 TCP INET FRAG 0 0 0
netstat命令复制代码代码如下:# netstat -iKernel Interface tableIface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flgeth0 0 0 0 0 0 0 0 BMRUlo 0 0 0 0 0 0 0 LRU</p><p># netstat -sIp: total packets received 0 forwarded 0 incoming packets discarded incoming packets delivered requests sent outIcmp: ICMP messages received input ICMP message failed. InCsumErrors: 2 ICMP input histogram: destination unreachable: timeout in transit: source quenches: 1 echo requests: echo replies: ICMP messages sent 0 ICMP messages failed ICMP output histogram: destination unreachable: echo request: echo replies: IcmpMsg: InType0: InType3: InType4: 1 InType8: InType: OutType0: OutType3: OutType8: Tcp: active connections openings passive connection openings failed connection attempts connection resets received connections established segments received segments send out segments retransmited bad segments received. resets sentUdp: packets received packets to unknown port received. 0 packet receive errors packets sentUdpLite:TcpExt: invalid SYN cookies received resets received for embryonic SYN_RECV sockets packets pruned from receive queue because of socket buffer overrun TCP sockets finished time wait in fast timer packets rejects in established connections because of timestamp delayed acks sent delayed acks further delayed because of locked socket Quick ack mode was activated times SYNs to LISTEN sockets dropped packets directly queued to recvmsg prequeue. bytes directly in process context from backlog bytes directly received in process context from prequeue packet headers predicted packets header predicted and directly queued to user acknowledgments not containing data payload received predicted acknowledgments times recovered from packet loss by selective acknowledgements Detected reordering 1 times using FACK Detected reordering 8 times using SACK Detected reordering times using time stamp 1 congestion windows fully recovered without slow start congestion windows partially recovered using Hoe heuristic 1 congestion windows recovered without slow start by DSACK congestion windows recovered without slow start after partial ack TCPLostRetransmit: timeouts after SACK recovery timeouts in loss state fast retransmits forward retransmits retransmits in slow start other TCP timeouts TCPLossProbes: TCPLossProbeRecovery: SACK retransmits failed packets collapsed in receive queue due to low socket buffer DSACKs sent for old packets DSACKs sent for out of order packets DSACKs received connections reset due to unexpected data connections reset due to early user close connections aborted due to timeout TCPDSACKIgnoredNoUndo: TCPSpuriousRTOs: TCPSackShifted: TCPSackMerged: TCPSackShiftFallback: TCPRcvCoalesce: TCPOFOQueue: TCPOFOMerge: TCPChallengeACK: TCPSYNChallenge: IpExt: InNoRoutes: 2 InOctets: OutOctets: InNoECTPkts: InECT0Pkts: InCEPkts: 3
ip命令复制代码代码如下:# ip -s link1: lo: <LOOPBACK,UP,LOWER_UP> mtu qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback ::::: brd ::::: RX: bytes packets errors dropped overrun mcast 0 0 0 0 TX: bytes packets errors dropped carrier collsns 0 0 0 0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu qdisc pfifo_fast state UP mode DEFAULT group default qlen link/ether :7a:7d:d2:f7: brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 0 0 0 0 TX: bytes packets errors dropped carrier collsns 0 0 0 0
sar命令复制代码代码如下:# sar -n DEV 1 Linux 3..0--generic (beta) 年月日 _x__ (4 CPU) 时分秒 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil时分秒 eth0 . 5. 0. 1. 0. 0. 0. 0.时分秒 lo . . 1. 1. 0. 0. 0. 0. 时分秒 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil时分秒 eth0 1. 1. 0. 0. 0. 0. 0. 0.时分秒 lo . . 2. 2. 0. 0. 0. 0. 时分秒 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil时分秒 eth0 5. 3. 0. 0. 0. 0. 0. 0.时分秒 lo . . 1. 1. 0. 0. 0. 0.还有其它工具如nload,iftop等等,不一一列举了。
Linux系统下强大的lsof命令使用宝典 lsof命令简介:lsof(listopenfiles)是一个列出当前系统打开文件的工具。在linux环境下,任何事物都以文件的形式存在,通过文件不仅仅可以访问常规数据
Linux系统中查杀僵尸进程的基本方法讲解 在UNIX系统中,一个进程结束了,但是他的父进程没有等待(调用wait/waitpid)他,那么他将变成一个僵尸进程.在fork()/execve()过程中,假设子进程结束时父进程仍
linux系统常用命令有哪些? semicolon命令的使用方法 这里介绍几个Linux的常用命令当在同一行的2个命令使用semicolon也就是分号;分隔时,表示第一个command将在后一个command开始时完成,例如ls-F/etc;ls-F/homeLin
标签: linux查看du
本文链接地址:https://www.jiuchutong.com/biancheng/353431.html 转载请保留说明!友情链接: 武汉网站建设