Linux网络监控统计工具iptraf

系统和网络设施:Linux系统下一个基于控制台的网络统计工具。
iptraf集多种数据,TCP连接的字节数、数据包、统计和活动指标、TCP / UDP通行故障、本地站点包和二进制字节计算。

呃,刚使用yum,发现可以找到这个工具。既然如此,那么就使用yum安装。

[root@searu ~]# yum -y install iptraf

Linux网络监控统计工具iptraf

yum install iptraf

[root@searu ~]# iptraf -h
语法:    iptraf [ -f ] [ { -i iface | -g | -d iface | -s iface | -z iface |
-l iface } [ -t timeout ] [ -B ] [ -L logfile ] [-I interval] ]
iptraf命令选项:
-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

终端直接运行#iptraf命令,按任意键继续,然后选择监控器。

Linux网络监控统计工具iptraf

#iptraf

如下所示,为IP traffic minitor,all interfaces。

Linux网络监控统计工具iptraf

iptraf监控IP流量

进入iptraf界面后,进入菜单可以配置iptraf、规则。也可以换到其他监控器。

iptraf下载地址:http://iptraf.seul.org/download.html

iptraf特性:

  • An IP traffic monitor that shows information on the IP traffic passing over your network. Includes TCP flag information, packet and byte counts, ICMP details, OSPF packet types.
  • General and detailed interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP packet counts, IP checksum errors, interface activity, packet size counts.
  • A TCP and UDP service monitor showing counts of incoming and outgoing packets for common TCP and UDP application ports
  • A LAN statistics module that discovers active hosts and shows statistics showing the data activity on them
  • TCP, UDP, and other protocol display filters, allowing you to view only traffic you’re interested in.
  • Logging
  • Supports Ethernet, FDDI, ISDN, SLIP, PPP, and loopback interface types.
  • Utilizes the built-in raw socket interface of the Linux kernel, allowing it to be used over a wide range of supported network cards.
  • Full-screen, menu-driven operation.

可识别协议:

  • IP
  • TCP
  • UDP
  • ICMP
  • IGMP
  • IGP
  • IGRP
  • OSPF
  • ARP
  • RARP

具体请访问:About IPTraf

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

Grow your business fast with

Suku