pyama86 / panai

network anlytics command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

panai

mruby network stat command.

usage

Take 5 seconds statistics for eth0

$ panai eth0 5 | jq '. | map(select(.src_port != ":80" and .src_port != ":443")) | sort_by(.total_recv)'
[
  {
    "src_host": "xxx.xxx.xxx.xxx",
    "dst_host": "yyy.yyy.yyy.yyy",
    "src_port": ":80",
    "dst_port": ":49881",
    "total_sent": 0,
    "total_recv": 30170,
    "sent_history": [],
    "recv_history": [
      30170
    ]
  }
]

author

@pyama86

About

network anlytics command


Languages

Language:Ruby 83.2%Language:C 16.3%Language:Dockerfile 0.5%