![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Able to ping server's private network | *Jess* | IP Networking | 3 | 01-10-2008 08:45 PM |
| How can i simulate network problems between unix machines ? | umen | IP Networking | 2 | 02-12-2007 08:10 AM |
| trying to map win xp machines in a linux | raulb | Linux | 3 | 10-05-2005 10:32 AM |
| switching between machines | w33man | UNIX for Dummies Questions & Answers | 1 | 04-28-2004 04:01 PM |
| Any solaris machines on the NET?? | TRUEST | UNIX for Dummies Questions & Answers | 1 | 03-24-2003 10:47 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I came to knw that "fping" can do this. The following info I got by googleing: But this command is not working in Redhat linux.
fping is a program which uses the Internet Control Message Protocol (ICMP) echo request to determine if a host is up. fping is different from ping in that you can specify any number of hosts on the command line, or specify a file containing the lists of hosts to ping. Instead of trying one host until it timeouts or replies, fping will send out a ping packet and move on to the next host in a round-robin fashion. If a host replies, it is noted and removed from the list of hosts to check. If a host does not respond within a certain time limit and/or retry limit it will be considered unreachable. Basically fping is meant to be used in shell scripts and its output is easy to parse. This command can be very useful to when you have to scan whole network for alive or unreachable hosts. In case of usage regular ping command you'll have to write shell script and parse each hosts icmp replies but fping can do the same in one line: To scan range of IP addresses from 192.168.0.1 to 192.168.0.9 just run: sudo fping -s -g 192.168.0.1 192.168.0.9 -r 1 That will output: 192.168.0.1 is alive 192.168.0.7 is alive 192.168.0.2 is unreachable 192.168.0.3 is unreachable 192.168.0.4 is unreachable 192.168.0.5 is unreachable 192.168.0.6 is unreachable 192.168.0.8 is unreachable 192.168.0.9 is unreachable 9 targets 2 alive 7 unreachable 0 unknown addresses 14 timeouts (waiting for response) 16 ICMP Echos sent 2 ICMP Echo Replies received 0 other ICMP received 0.05 ms (min round trip time) 0.44 ms (avg round trip time) 0.84 ms (max round trip time) 2.183 sec (elapsed real time) In order to scan /24 network (254 hosts) and show only alive hosts the following command can be used: sudo fping -a -q -g 192.168.0.0/24 |
|
|||||
|
fping is great tool, almost as cool as hping2
fping needs to be installed. Donwload the latest version, "configure" and "make install" as root. For such purpose you can use "nmap" as well. nmap sample report as follows : Quote:
|
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|