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

小惠 2010-09-09

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

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

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

官网及下载http://iptraf.seul.org/download.html

ftp://the.wiretapped.net/pub/security/network-monitoring/iptraf/iptraf-3...

http://dl.wdlinux.cn:5180/soft/iptraf-3.0.0.tar.gz

源码安装

wgetftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz

tarzxvfiptraf-3.0.0.tar.gz

cdiptraf-3.0.0

./Setup

yum方式安装

yuminstall-yiptraf

使用

直接运行iptraf

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

IP流量监视(IPtrafficmonitor)

网络接口的一般信息统计(GeneralInterfaceStatistics)

网络接口的细节信息统计(DetailedInterfaceStatistics)

统计分析(StatisticalBreakdowns)

局域网工作站统计(LANStationStatistics)

过滤器(Filters...)

配置(Configure...)

退出(Exit)

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

可以查看还有哪些参数和选项

[root@wdlinuxiptraf-3.0.0]#iptraf-h

Syntax:

iptraf[-f][{-iiface|-g|-diface|-siface|-ziface|

-liface}[-ttimeout][-B][-Llogfile][-Iinterval]]

Issuetheiptrafcommandwithnoparametersformenu-drivenoperation.

Theseoptionscanalsobesuppliedtothecommand:

-iiface-starttheIPtrafficmonitor(use"-iall"forallinterfaces)

-g-startthegeneralinterfacestatistics

-diface-startthedetailedstatisticsfacilityonaninterface

-siface-starttheTCPandUDPmonitoronaninterface

-ziface-showsthepacketsizecountsonaninterface

-liface-starttheLANstationmonitor("-lall"forallLANinterfaces)

-B-runinbackground(useonlywithoneoftheaboveparameters)

-ttimeout-whenusedwithoneoftheaboveparameters,tells

thefacilitytorunonlyforthespecifiednumberof

minutes(timeout)

-Llogfile-specifiesanalternatelogfileforanydirectinvocation

ofafacilityfromthecommandline.Thelogisplacedin

/var/log/iptrafifpathisnotspecified.

-Iinterval-specifiesthelogintervalforallfacilitiesexcepttheIP

trafficmonitor.Valueisinminutes.

-f-clearalllocksandcounters.Usewithgreatcaution.

Normallyusedtorecoverfromanabnormaltermination.

IPTraf3.0.0Copyright(c)GerardPaulJava1997-2004

欢迎转载,但请保留此信息

[我的Linux,让Linux更易用]CentOS定制自动安装版,lamp,lnmp自动安装脚本,集群负载均衡LVS,性能优化,ispconfig,webmin

本文连接:http://www.wdlinux.cn/iptraf

相关推荐