LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2009, 03:36 AM   #1
Ole Juul
Member
 
Registered: Sep 2008
Location: Coalmont, Canada
Distribution: Kubuntu
Posts: 48
Blog Entries: 1

Rep: Reputation: 15
fping usage to show only reachble hosts


Is there a way prevent fping from showing targets that are unreachable? According to the man page, the -u option is for showing them but I want to know how NOT to show them. I am using Kubuntu 6.10.

Example: fping -a -g 192.168.1.100 192.168.1.110
produces three lines of "ICMP Host Unreachable ..." for each unreachable ip and then a synopsis of all the unreachable ones after that. All I want is a list of the reachable ones. Perhaps fping is only for scripts not suitable for the command line.
 
Old 04-12-2009, 12:00 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just redirect stderr:

fping -g 192.168.1.0/24 2> /dev/null
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why doesnt top or free show swap memory usage ? exceed1 Linux - General 15 08-03-2009 08:38 PM
how to show the memory usage per process ty263 Linux - General 3 09-12-2008 06:36 AM
Verify /etc/hosts usage and round robin in /etc/hosts MikeyCarter Linux - Software 1 06-24-2008 12:20 PM
not able to clear the var folder show 100% usage help me? oldnavyboy06 Linux - Networking 1 07-11-2006 05:04 AM
Show Kernel Memory usage? Qten Linux - Newbie 17 08-20-2004 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration