博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux网络流量实时监控工具之iptraf
阅读量:7176 次
发布时间:2019-06-29

本文共 1883 字,大约阅读时间需要 6 分钟。

这个工具还是很强大

linux网络流量实时监控工具之iptraf

[我的Linux,让Linux更易用]是一个网络监控工具,功能比更强大,可以监控所有的流量,IP流量,按协议分的流量,还可以设置过滤器等,如下图

对监控网络来说,这个更适合也更强大,但在总的流量显示上,没直观和方便

官网及下载 

源码安装

wget 
tar zxvf iptraf-3.0.0.tar.gz
cd iptraf-3.0.0
./Setup

yum方式安装

yum install -y iptraf

使用

直接运行 iptraf
后有一个如下的菜单提示,然后进入相关的选项查看

 IP流量监视(IP traffic monitor)

网络接口的一般信息统计(General Interface Statistics)
网络接口的细节信息统计(Detailed Interface Statistics)
统计分析(Statistical Breakdowns)
局域网工作站统计(LAN Station Statistics)
过滤器(Filters...)
配置(Configure...)
退出(Exit)

也可以直接加参数或选项直接进入

可以查看还有哪些参数和选项
[root@wdlinux iptraf-3.0.0]# iptraf -h

 Syntax:

iptraf [ -f ] [ { -i iface | -g | -d iface | -s iface | -z iface |
-l iface } [ -t timeout ] [ -B ] [ -L logfile ] [-I interval] ]

Issue the iptraf command with no parameters for menu-driven operation.

These options can also be supplied to the command:

-i iface - start the IP traffic monitor (use "-i all" for all interfaces)

-g - start the general interface statistics
-d iface - start the detailed statistics facility on an interface
-s iface - start the TCP and UDP monitor on an interface
-z iface - shows the packet size counts on an interface
-l iface - start the LAN station monitor ("-l all" for all LAN interfaces)
-B - run in background (use only with one of the above parameters)
-t timeout - when used with one of the above parameters, tells
the facility to run only for the specified number of
minutes (timeout)
-L logfile - specifies an alternate log file for any direct invocation
of a facility from the command line. The log is placed in
/var/log/iptraf if path is not specified.
-I interval - specifies the log interval for all facilities except the IP
traffic monitor. Value is in minutes.
-f - clear all locks and counters. Use with great caution.
Normally used to recover from an abnormal termination.

IPTraf 3.0.0 Copyright (c) Gerard Paul Java 1997-2004

转 http://www.wdlinux.cn/old/iptraf

 

转载地址:http://twbzm.baihongyu.com/

你可能感兴趣的文章
(转载)Http 请求处理流程
查看>>
GetVersion和GetVersionEx
查看>>
软工实践第一次作业
查看>>
php采集利器snoopy应用技巧
查看>>
java事件处理机制(自定义事件)j
查看>>
字符串反转
查看>>
我的友情链接
查看>>
Mysq-MMM读写分离实操(简单易懂版)
查看>>
博文索引
查看>>
修改mysql用户密码
查看>>
Postgresql PostGIS使用总结
查看>>
Django中间件
查看>>
活动目录服务的配置与管理(7) 利用组策略实现文件夹重定向
查看>>
删除除了匹配到的所有文件以及文件夹
查看>>
Linux中安装GRUB的两种方式
查看>>
iptables 详解
查看>>
Rancher中的服务升级实验
查看>>
数据结构-------顺序表的实现
查看>>
供应虚拟机没有usb端口和无法识别映射usb解决方案
查看>>
sed的用法
查看>>