位置: IT常识 - 正文

Linux系统下查看网络接口数据信息的命令总结(linux 操作系统查看)

编辑:rootadmin
推荐整理分享Linux系统下查看网络接口数据信息的命令总结(linux 操作系统查看),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:linux 操作系统查看,linux命令查看,linux查看hz,linux 系统查看,linux查看du,linux查看du,linux查看sh,linux命令查看,内容如对您有帮助,希望把文章链接给更多的朋友!

监视网络接口TCP状态信息数据有多种工具或命令。下面举例一些:nstat命令

代码如下:# nstat#kernelIpInReceives 9733104 0.0IpInDelivers 9733102 0.0IpOutRequests 9058593 0.0IcmpInErrors 2147 0.0IcmpInCsumErrors 1143 0.0IcmpInDestUnreachs 2 0.0IcmpInTimeExcds 1361 0.0IcmpInParmProbs 56 0.0IcmpInRedirects 1 0.0IcmpInEchoReps 701 0.0IcmpInTimestamps 26 0.0IcmpOutErrors 750 0.0IcmpOutTimeExcds 23 0.0IcmpOutEchoReps 26 0.0IcmpOutTimestamps 701 0.0IcmpMsgInType0 26 0.0IcmpMsgInType3 1361 0.0IcmpMsgInType4 1 0.0IcmpMsgInType8 701 0.0IcmpMsgInType11 56 0.0IcmpMsgOutType0 701 0.0IcmpMsgOutType3 23 0.0IcmpMsgOutType8 26 0.0TcpActiveOpens 678940 0.0TcpPassiveOpens 910289 0.0TcpAttemptFails 58018 0.0TcpEstabResets 14608 0.0TcpInSegs 9686518 0.0TcpOutSegs 9038288 0.0TcpRetransSegs 6700 0.0TcpInErrs 47 0.0TcpOutRsts 67249 0.0UdpInDatagrams 44409 0.0UdpNoPorts 23 0.0UdpOutDatagrams 44441 0.0Ip6InReceives 6 0.0Ip6InNoRoutes 6 0.0Ip6OutRequests 9 0.0Ip6OutNoRoutes 3948 0.0Ip6OutMcastPkts 14 0.0Ip6InOctets 432 0.0Ip6OutOctets 612 0.0Ip6OutMcastOctets 992 0.0Ip6InNoECTPkts 6 0.0Icmp6OutMsgs 9 0.0Icmp6OutRouterSolicits 3 0.0Icmp6OutNeighborSolicits 1 0.0Icmp6OutMLDv2Reports 5 0.0Icmp6OutType133 3 0.0Icmp6OutType135 1 0.0Icmp6OutType143 5 0.0TcpExtSyncookiesFailed 140 0.0TcpExtEmbryonicRsts 704 0.0TcpExtPruneCalled 23 0.0TcpExtTW 615681 0.0TcpExtPAWSEstab 20 0.0TcpExtDelayedACKs 52123 0.0TcpExtDelayedACKLocked 44 0.0TcpExtDelayedACKLost 1518 0.0TcpExtListenDrops 32 0.0TcpExtTCPPrequeued 19258 0.0TcpExtTCPDirectCopyFromBacklog 45185 0.0TcpExtTCPDirectCopyFromPrequeue 394312 0.0TcpExtTCPHPHits 943072 0.0TcpExtTCPHPHitsToUser 3478 0.0TcpExtTCPPureAcks 3242625 0.0TcpExtTCPHPAcks 547259 0.0TcpExtTCPSackRecovery 650 0.0TcpExtTCPFACKReorder 1 0.0TcpExtTCPSACKReorder 8 0.0TcpExtTCPTSReorder 23 0.0TcpExtTCPFullUndo 1 0.0TcpExtTCPPartialUndo 23 0.0TcpExtTCPDSACKUndo 1 0.0TcpExtTCPLossUndo 854 0.0TcpExtTCPLostRetransmit 162 0.0TcpExtTCPSackFailures 135 0.0TcpExtTCPLossFailures 18 0.0TcpExtTCPFastRetrans 1517 0.0TcpExtTCPForwardRetrans 104 0.0TcpExtTCPSlowStartRetrans 172 0.0TcpExtTCPTimeouts 2764 0.0TcpExtTCPLossProbes 5201 0.0TcpExtTCPLossProbeRecovery 2858 0.0TcpExtTCPSackRecoveryFail 74 0.0TcpExtTCPRcvCollapsed 460 0.0TcpExtTCPDSACKOldSent 1645 0.0TcpExtTCPDSACKOfoSent 21 0.0TcpExtTCPDSACKRecv 879 0.0TcpExtTCPAbortOnData 4314 0.0TcpExtTCPAbortOnClose 346 0.0TcpExtTCPAbortOnTimeout 186 0.0TcpExtTCPDSACKIgnoredNoUndo 615 0.0TcpExtTCPSpuriousRTOs 95 0.0TcpExtTCPSackShifted 402 0.0TcpExtTCPSackMerged 2048 0.0TcpExtTCPSackShiftFallback 2592 0.0TcpExtTCPRcvCoalesce 145162 0.0TcpExtTCPOFOQueue 36672 0.0TcpExtTCPOFOMerge 21 0.0TcpExtTCPChallengeACK 329 0.0TcpExtTCPSYNChallenge 47 0.0IpExtInNoRoutes 2 0.0IpExtInOctets 1568628267 0.0IpExtOutOctets 1158526375 0.0IpExtInNoECTPkts 9828130 0.0IpExtInECT0Pkts 10 0.0IpExtInCEPkts 3 0.0

ss命令

代码如下:# ss -sTotal: 319 (kernel 752)TCP: 187 (estab 114, closed 58, orphaned 0, synrecv 0, timewait 58/0), ports 0

Transport Total IP IPv6* 752 - - RAW 0 0 0 UDP 3 2 1 TCP 129 113 16 INET 132 115 17 FRAG 0 0 0Linux系统下查看网络接口数据信息的命令总结(linux 操作系统查看)

netstat命令

代码如下:# netstat -iKernel Interface tableIface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flgeth0 9001 0 2194916 0 0 0 1424609 0 0 0 BMRUlo 65536 0 7670598 0 0 0 7670598 0 0 0 LRU</p><p># netstat -sIp: 9743496 total packets received 0 forwarded 0 incoming packets discarded 9743494 incoming packets delivered 9068146 requests sent outIcmp: 2147 ICMP messages received 1143 input ICMP message failed. InCsumErrors: 2 ICMP input histogram: destination unreachable: 1361 timeout in transit: 56 source quenches: 1 echo requests: 701 echo replies: 26 750 ICMP messages sent 0 ICMP messages failed ICMP output histogram: destination unreachable: 23 echo request: 26 echo replies: 701IcmpMsg: InType0: 26 InType3: 1361 InType4: 1 InType8: 701 InType11: 56 OutType0: 701 OutType3: 23 OutType8: 26Tcp: 679665 active connections openings 911387 passive connection openings 58018 failed connection attempts 14608 connection resets received 118 connections established 9696894 segments received 9047825 segments send out 6700 segments retransmited 47 bad segments received. 67249 resets sentUdp: 44425 packets received 23 packets to unknown port received. 0 packet receive errors 44457 packets sentUdpLite:TcpExt: 140 invalid SYN cookies received 704 resets received for embryonic SYN_RECV sockets 23 packets pruned from receive queue because of socket buffer overrun 616402 TCP sockets finished time wait in fast timer 20 packets rejects in established connections because of timestamp 52124 delayed acks sent 45 delayed acks further delayed because of locked socket Quick ack mode was activated 1519 times 32 SYNs to LISTEN sockets dropped 19258 packets directly queued to recvmsg prequeue. 45185 bytes directly in process context from backlog 394312 bytes directly received in process context from prequeue 943942 packet headers predicted 3478 packets header predicted and directly queued to user 3246338 acknowledgments not containing data payload received 547737 predicted acknowledgments 650 times recovered from packet loss by selective acknowledgements Detected reordering 1 times using FACK Detected reordering 8 times using SACK Detected reordering 23 times using time stamp 1 congestion windows fully recovered without slow start 23 congestion windows partially recovered using Hoe heuristic 1 congestion windows recovered without slow start by DSACK 854 congestion windows recovered without slow start after partial ack TCPLostRetransmit: 162 135 timeouts after SACK recovery 18 timeouts in loss state 1517 fast retransmits 104 forward retransmits 172 retransmits in slow start 2764 other TCP timeouts TCPLossProbes: 5202 TCPLossProbeRecovery: 2859 74 SACK retransmits failed 460 packets collapsed in receive queue due to low socket buffer 1646 DSACKs sent for old packets 21 DSACKs sent for out of order packets 879 DSACKs received 4314 connections reset due to unexpected data 346 connections reset due to early user close 186 connections aborted due to timeout TCPDSACKIgnoredNoUndo: 615 TCPSpuriousRTOs: 95 TCPSackShifted: 402 TCPSackMerged: 2048 TCPSackShiftFallback: 2592 TCPRcvCoalesce: 145187 TCPOFOQueue: 36673 TCPOFOMerge: 21 TCPChallengeACK: 329 TCPSYNChallenge: 47IpExt: InNoRoutes: 2 InOctets: 1570012766 OutOctets: 1159491497 InNoECTPkts: 9838700 InECT0Pkts: 10 InCEPkts: 3

ip命令

代码如下:# ip -s link1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 RX: bytes packets errors dropped overrun mcast 883395575 7672258 0 0 0 0 TX: bytes packets errors dropped carrier collsns 883395575 7672258 0 0 0 0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 02:7a:7d:d2:f7:21 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 694754381 2197268 0 0 0 0 TX: bytes packets errors dropped carrier collsns 296980409 1425257 0 0 0 0

sar命令

代码如下:# sar -n DEV 1 Linux 3.13.0-48-generic (beta) 2015年08月17日 _x86_64_ (4 CPU)

14时46分54秒 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil14时46分55秒 eth0 12.00 5.00 0.97 1.18 0.00 0.00 0.00 0.0014时46分55秒 lo 10.00 10.00 1.00 1.00 0.00 0.00 0.00 0.00

14时46分55秒 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil14时46分56秒 eth0 1.00 1.00 0.05 0.47 0.00 0.00 0.00 0.0014时46分56秒 lo 16.00 16.00 2.17 2.17 0.00 0.00 0.00 0.00

14时46分56秒 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil14时46分57秒 eth0 5.00 3.00 0.26 0.61 0.00 0.00 0.00 0.0014时46分57秒 lo 10.00 10.00 1.00 1.00 0.00 0.00 0.00 0.00

还有其它工具如nload,iftop等等,不一一列举了。

本文链接地址:https://www.jiuchutong.com/zhishi/267424.html 转载请保留说明!

上一篇:win10锁屏壁纸保存方法(window10锁屏壁纸图片在哪)

下一篇:Linux怎么使用命令查看文件指定行数的内容?(linux怎么使用命令)

  • 一般纳税人购进货物用于免征增值税项目
  • 劳务公司的个税如何申报
  • 股东所有者权益公式
  • 融资租赁租出的固定资产需要计提折旧吗
  • 稳岗补贴属于不征税收入吗
  • 小规模纳税人运输费计入什么科目
  • 销售费用包括啥
  • 电子发票红字发票怎么开
  • 银行承兑汇票手续费是多少
  • 住宅小区共用部位有哪些
  • 未支付的货款属于什么会计科目
  • 收到费用发票入账后发现错误
  • 建筑工地不按月发工资怎么办
  • 先收入后开票如何做账
  • 低值易耗品是成本吗
  • 计提坏账准备,坏账准备是增加还是减少
  • 劳务派遣可以开专票吗
  • 什么是差额征税,什么情况下适用差额征税
  • 外来经营活动需要提供什么资料?
  • 已经提完折旧的固定资产报废
  • 4s店额外收取服务费
  • 银行汇票银行不予受理的是
  • 简述linux系统的启动
  • 笔记本thinkbook14
  • php for break
  • 何为租赁合同
  • 应收挂账太久有什么税务风险
  • 个体户文化事业建设费免征
  • 购买原材料产生的费用
  • 基于改进yolov4论文
  • 研发费用加计扣除75%还是100%
  • 收据可以用来做账吗
  • 公司收到股权转让款需要交什么税种
  • 征地拆迁的费用可以作为资产吗
  • 新公司成立后税务方面有哪些流程2023
  • 更正申报失败,维持原申报?
  • 新会计准则股权投资
  • sqlserver行列转换多行多列
  • 资产减值损失应计入什么科目
  • 企业所得税和个人所得税都要交吗
  • 房地产增值税抵减
  • 企业与企业之间通过互联网进行产品
  • 追索权行使的形式要件是什么
  • 公司间借款利息怎么开发票
  • 服务业暂估成本怎样做账?
  • 机票报销是什么发票
  • 母公司溢价收购子公司
  • 受疫情影响较大的困难行业企业2020
  • 现金日记账要如何做账
  • 房屋拆除的会计分录
  • 进项转出做账做什么会计
  • 其他综合收益相反科目
  • 非税收入定额票据是什么
  • 生产企业消防设施管理规定
  • 怎么结转本月期间损益
  • 租写字楼水电费自己付吗
  • 会计档案销毁方案怎么写
  • 如何保证系统异常状态
  • 联想笔记本bios设置启动顺序
  • win10预览版21h2
  • linux的awk命令大全
  • windows没有
  • centos7.4安装
  • win8开机界面
  • win10更新提示错误
  • jquery直接执行
  • node.js axios
  • FIF互动帮助手册系列-HTML手册 flash版
  • 手游频繁崩溃怎么解决
  • unity游戏之羊刀与Pendragon复盘:DotA做对了什么
  • js常用排序算法
  • 基于nodejs的项目
  • javascriptz
  • 法线贴图使用
  • 煤炭洗选工艺
  • 蜀山区税务局工资待遇
  • 湖南耕地占用税标准
  • 国地税发展历程
  • 电子税务局开电子发票如何更换开票人
  • 百旺税控盘怎样清盘
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设