: I have a script that polls all my laserjets to see if they're ok. If
: they're ok, "ping 64 1" comes back quickly - but if one is switched off,
: it can take about 10 seconds to time out.
: Are there any alternatives to ping to determine if a printer is switched
: on? hpnpstat and hpnpadmin both have long time-outs too. I don't know it
: they just call ping anyway.
Yup. Called fping. It's designed for what you have in mind, I think.
Usage: fping [options] [systems...]
-f file read list of systems from a file ( - means stdin)
-i n interval (between ping packets) in milli-seconds (default 10)
-t n individual host timeout in milli-seconds (default 1000)
-r n retry limit (default 4)
-s dump final stats
-q quiet (don't show per host results)
-a show systems that are alive
-u show systems that are unreachable
-d use dns to lookup address for return ping packet
-v show version
systems list of systems to check (if no -f specified)
Sherwood Botsford |Unsolicited email that advertises commercial
Physics Dept |activities will consitute a request for
U of Alberta |spellchecking of all words of less than three
Edmonton, AB, |characters. I charge $US500 for this service.
T6G 2J1 |There is no warranty of correctness of this service.