Fping adalah sebuah aplikasi yang berfungsi untuk mengirimkan paket-paket Internet Control Message Protocol (ICMP) echo request. ICMP digunakan oleh sistem operasi komputer jaringan untuk mengirim pesan error/kesalahan, misalnya komputer tujuan tidak bisa dijangkau.
Fping memang hampir sama dengan ping, namun memiliki perbedaan yaitu fping mempunyai kemampuan mengirimkan paket ICMP ke sejumlah host tertentu secara paralel atau menggunakan sebuah file yang berisi daftar ip address/host/target yang akan di ping.
Instalasi
Instalasi aplikasi fping pada distro linux Ubuntu dan turunannya dapat dilakukan dengan menggunakan perintah:
# apt-get install fping |
Sedangkan pada distro linux openSUSE dapat dilakukan dengan perintah:
# zypper install fping |
Fping untuk target dengan menggunakan range ip address
Penggunaan fping untuk target dengan menggunakan range ip address dapat dilakukan dengan menggunakan pola:
fping [options] [range_target] |
Contoh:
wdzgouch@server1:~$ fping -g 172.16.7.100 172.16.7.110 172.16.7.102 is alive 172.16.7.107 is alive 172.16.7.108 is alive 172.16.7.109 is alive ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.100 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.100 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.100 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.101 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.101 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.101 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.103 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.103 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.103 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.105 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.105 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.105 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.110 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.110 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.103 172.16.7.100 is unreachable 172.16.7.101 is unreachable 172.16.7.103 is unreachable 172.16.7.104 is unreachable 172.16.7.105 is unreachable 172.16.7.106 is unreachable 172.16.7.110 is unreachable |
Contoh lainnya:
wdzgouch@server1:~$ fping -g -s 172.16.7.100 172.16.7.110 172.16.7.102 is alive 172.16.7.107 is alive 172.16.7.108 is alive 172.16.7.109 is alive ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.100 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.100 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.100 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.101 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.101 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.101 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.103 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.103 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.103 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.105 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.105 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.105 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.110 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.110 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.103 172.16.7.100 is unreachable 172.16.7.101 is unreachable 172.16.7.103 is unreachable 172.16.7.104 is unreachable 172.16.7.105 is unreachable 172.16.7.106 is unreachable 172.16.7.110 is unreachable 11 targets 4 alive 7 unreachable 0 unknown addresses 28 timeouts (waiting for response) 32 ICMP Echos sent 4 ICMP Echo Replies received 21 other ICMP received 0.03 ms (min round trip time) 2.45 ms (avg round trip time) 4.67 ms (max round trip time) 8.625 sec (elapsed real time) |
Fping untuk file yang berisi daftar target tertentu
Penggunaan fping untuk file yang berisi daftar target tertentu atau daftar ip address yang telah ditentukan sebelumnya, dapat dilakukan dengan menggunakan perintah:
fping < [/lokasi/file/target] [options] |
atau
fping < [options] [/lokasi/file/target] |
Contohnya terdapat sebuah file fping-test.txt yang berada pada direktori /home/wdzgouch/ yang berisi daftar ip address yang akan di ping, yaitu:
172.16.7.102 172.16.7.104 172.16.7.106 172.16.7.107 172.16.7.108 172.16.7.110 |
wdzgouch@server1:~$ fping < /home/wdzgouch/fping-test.txt -u -s ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.104 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.106 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.110 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.110 ICMP Host Unreachable from 172.16.7.108 for ICMP Echo sent to 172.16.7.110 172.16.7.104 172.16.7.106 172.16.7.110 6 targets 3 alive 3 unreachable 0 unknown addresses 12 timeouts (waiting for response) 15 ICMP Echos sent 3 ICMP Echo Replies received 9 other ICMP received 0.03 ms (min round trip time) 1.86 ms (avg round trip time) 3.45 ms (max round trip time) 5.967 sec (elapsed real time) |
Penggunaan lebih lanjut mengenai fping dan berbagai opsinya dapat dilihat melalui manual yang tersedia, gunakan perintah:
man fping |
Comment
Wah Mantab nih pa
nais inpoh gan