Operating System - HP-UX
1827397 Members
5241 Online
109965 Solutions
New Discussion

Ping command with -m timeout switch

 
SOLVED
Go to solution
littlepig_1
Occasional Contributor

Ping command with -m timeout switch

Hi,
In HPUX 11.11, the ping command does not have the timeout switch (-m), is there any way to download a new ping command with that -m switch?

Thanks
6 REPLIES 6
spex
Honored Contributor

Re: Ping command with -m timeout switch

$ uname -r
B.11.11
$ ping
Usage: ping [-oprv] [-I interval] host [-n count [-m timeout]]
ping [-oprv] [-I interval] host packet-size [[-n] count [-m timeout]]

Notice the [-m timeout] option.
littlepig_1
Occasional Contributor

Re: Ping command with -m timeout switch

hi,
This is the output in my servers

# uname -r
B.11.11
# ping
Usage: ping [-oprv] [-i address] [-t ttl] host [-n count]
ping [-oprv] [-i address] [-t ttl] host packet-size [[-n] count]

the -m switch missing....is there any patch I need to apply?
Hasan  Atasoy
Honored Contributor
Solution

Re: Ping command with -m timeout switch

hi pisiong ;

the patch for -m parameter is PHNE_29887;


Resolution:
Code has been modified to provide two additional
options (I and m) as detailed below:
-I : To set the time interval between two
successive packet transmissions
-m : To set the wait time after the last packet
has been transmitted



the link for that patch is

http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=main|search|patchDetail{PHNE_29887,{hpux:11.11,}}|&patchid=PHNE_27382&sel={hpux:11.11,}

ps : dont forget to assign points.
Bill Hassell
Honored Contributor

Re: Ping command with -m timeout switch

No, there is no patch. 11.00 is obsolete and the -m option was added starting at 11.11. You'll have to create a script that runs ping in the background, waits for a completion or kill the process in order to simulate a timeout.


Bill Hassell, sysadmin
Hasan  Atasoy
Honored Contributor

Re: Ping command with -m timeout switch

hi bill
if you look at that patch you will see that -m parameter added with that path to ping . I am sure..

Hasan
Steven Schweda
Honored Contributor

Re: Ping command with -m timeout switch

On the whole WWW, with FreeBSD, OpenBSD,
Linux, and every other thing out there, you
can't find source code for a "ping" program
with a time-out (possibly "-t" instead of
"-m")?