コマンド一覧
ポートをオープンしているプロセスを調べる
lsof - lsof -i:PORT1[,PORT2,..]
IFを制御する
- 設定確認
- ethtool eth0
- スピードを10Mに設定
- ethtool -s eth0 speed 10
- リンクモードを半2重に設定
- ethtool -s eth0 duplex half
- オートネゴシエーションをOFF
- ethtool -s eth0 autoneg off
- 設定確認
トラフィックを確認する
sar -n DEV
各インターフェイスについて、10分毎のトラフィックの統計を表示
-
- rxpck/s: Total number of packets received per second.
- txpck/s: Total number of packets transmitted per second.
- rxbyt/s: Total number of bytes received per second.
- txbyt/s: Total number of bytes transmitted per second.
- rxcmp/s: Number of compressed packets received per second (for cslip etc.).
- txcmp/s: Number of compressed packets transmitted per second.
- rxmcst/s: Number of multicast packets received per second.
パケットをキャプチャする
tcpdump - 接続元を特定する
- $ tcpdump src host 192.168.100.1 and port 80
- man tcpdump
- 接続元を特定する
snoop
capture and inspect network packets
帯域を測定する
- netperf
CPUの負荷を確認する
top / cat /proc/loadavg
Load Average を確認
1分の平均,5分の平均 15分の平均
prstat [interval]
"load averages"を確認する
1分の平均,5分の平均 15分の平均