fping †fpingは非常に速いpingツールで、zabbix等にも使われるらしい。 Windows版、Linux版があるのでそれぞれ説明。 Windows版 †インストール †インストールと言っても、DLして来たファイルを置くだけ。 環境: ■ディレクトリ移動
使い方(コマンド): † fping <host(-list)> [オプション] DOS窓を開き、 C:\Documents and Settings\manager>cd C:\ C:\>cd "fping222\x86 (32 bit)"\ Download オプション † -s data_size 送信するデータサイズをバイト単位で指定(デフォルトは32バイト) -S size1/size2 size1からsize2になるまで1バイトずつ増やしながらping -c ctrl+cを押すまで永続実行 -t time pingを実行する間隔をms単位で指定(この値を小さくすると高速で実行できます) -w timeout 応答までの待ち時間をms単位で指定(デフォルト1000ms) -n count pingを実行する回数を指定 -a IPアドレスを指定した場合に名前解決をする -b 成功or失敗したときにビープ音を鳴らす -l ping結果のみ表示させる(成功/失敗の統計を表示させない) -R min/max min/maxで指定したバイト間のデータサイズでランダムにping -f 送信するパケットにDon't Fragmentフラグを設定する -T 実行結果に実行した時間を表示 -d ping_data icmpリクエストのデータ部分にping_dataで指定したデータを入れる -D 実行結果に、実行した日付と時間を表示 -g host1/host2 指定した範囲にping -H filename filename中のIPアドレスにping(ファイルには、1行に1アドレスを書く) Linux版 †インストール †RedHat系(CentOS)、SuSEにはおそらくパッケージの準備がされていると思う。 環境: # yum install fping # rpm -qa |grep fping 使い方(コマンド): † fping [オプション] <host> ex)ファイルの中にテストしたいホストを記述 # cat host.txt 192.168.1.1 192.168.1.100 192.168.1.210 # fping -f host.txt 192.168.1.1 is alive 192.168.1.100 is alive ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.210 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.210 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.210 192.168.1.210 is unreachable ex)セグメントに対してpingをする 192.168.1.1~192.168.1.10までの間にpingを実行する # fping -g 192.168.1.1 192.168.1.10 192.168.1.1 is alive 192.168.1.2 is alive 192.168.1.5 is alive 192.168.1.9 is alive 192.168.1.10 is alive ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.3 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.3 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.3 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.4 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.4 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.4 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.6 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.6 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.6 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.7 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.7 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.7 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.8 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.8 ICMP Host Unreachable from 192.168.1.116 for ICMP Echo sent to 192.168.1.8 192.168.1.3 is unreachable 192.168.1.4 is unreachable 192.168.1.6 is unreachable 192.168.1.7 is unreachable 192.168.1.8 is unreachable その他 †参考URL |