前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >iptraf用法

iptraf用法

作者头像
拓荒者
发布2019-03-16 14:18:42
1.2K0
发布2019-03-16 14:18:42
举报
文章被收录于专栏:运维经验分享运维经验分享

 标签: linuxiptraf 更多

个人分类: linux

版权声明: https://blog.csdn.net/daiqi5527153/article/details/78629320

语法     iptraf [ -f ] [ { -i iface | -g | -d iface | -s iface | -z iface |            -l iface } [ -t timeout ] [ -B ] [ -L logfile ] [-I interval] ]  如果不写任何参数打开iptraf则会出现一个菜单选项用户只要选项相应的选项即可对网络设备进行监控了 也可以使用命令参数的形式打开iptraf,如下命令参数 打开ip流量监控-i all则监视所有的网络设备 -i iface    - start the IP traffic monitor (use "-i all" for all interfaces) 用法: 监控eth0 iptraf -i eth0 监控所有网卡 iptraf -i all 网络连接统计概况 -g          - start the general interface statistics 用法: iptraf -g 监控某个网卡详细的统计数据 -d iface    - start the detailed statistics facility on an interface 用法: iptraf -d eth0 监控某个网卡上的TCP和UDP连接包等信息 -s iface    - start the TCP and UDP monitor on an interface 用法: iptraf -s eth0 监控某个网卡上的包大小及相关计数(包大小的分布) -z iface    - shows the packet size counts on an interface 用法: iptraf -z eth0 -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) 用法: iptraf -B eth0 指定-t以使用程序运行指定的时间后退出 -t timeout  - when used with one of the above parameters, tells               the facility to run only for the specified number of               minutes (timeout) 用法: 运行一分钟后退出 iptarf -i all -t 1               输出logfile到指定的文件如果不指定则会输出到/var/log/iptraf/文件夹中         -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. 用法: 输出log到~/iptraf.log iptraf -i all -L ~/iptraf.log 指定log文件的输出间隔这个参数对除了IP监视之后的其它参数有效参数单位为分钟              -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 -f

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018/12/24 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  •  标签: linuxiptraf 更多
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档