Kwakkelflap
September 09, 2010, 03:37:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: http://www.kwakkelflap.com
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Feature request  (Read 985 times)
pzuge
*
Posts: 1


View Profile
« on: November 30, 2009, 04:15:45 AM »

Hello, I just discovered FPING (and I am liking it very much - Thank you for providing this!). 
I am using the beta version (fping300beta2.zip) because the "2.22" version crashed on the systems I tried running it on, but the beta version runs fine.

My question is this:  Can FPING take a list of hosts via STDIN (Standard Input)?

I tried, but I don't think it can.  If it can't, can this be added to the "feature request" list?  It would make using FPING inside scripts a lot easier because you wouldn't need to create an intermediate (temporary) file to store the host list in.

As an example, here is the powershell script I am using:

    #use FPING to do a "bulk" async ping of $PossiblyDeadComputers... some are alive, just not changing their computer passwords
    $PossiblyDeadComputers | out-file $REPORT_TEMPFILE -encoding ASCII
    $FPING_Results = invoke-expression "$FPING_EXE -H $REPORT_TEMPFILE  -p20 -n 3 -l 2>&1"
    Remove-Item $REPORT_TEMPFILE
    foreach( $result in $FPING_Results ) { if( $result.toString() -match "^Reply\[.*\] from (?<computername>.*): .*$" ) { $PossiblyDeadComputer_BUT_pingable += $matches.computername } }


Thank you.


Logged
Wouter Dhondt
Administrator
*****
Posts: 168



View Profile WWW
« Reply #1 on: December 01, 2009, 03:25:37 AM »

Not sure why this is required. You can add a number of different hosts in the fping command line. No need to use a hostfile. You should be able to use

Code:
$FPING_Results = invoke-expression "$FPING_EXE $PossiblyDeadComputers -p20 -n 3 -l 2>&1"

Do you have a crash address for version 2.22? The crash is probably related with the usage of the host file.

Reminds me I should release version 3.00. The beta seems to be running fine.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!