- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- changing ping interval
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2005 10:01 AM
тАО09-11-2005 10:01 AM
Can someone let me know how to ping to the boxes by changing default time interval ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2005 10:11 AM
тАО09-11-2005 10:11 AM
Re: changing ping interval
# ping anyhost -m 25
...changes the default 10-second timeout to 25-seconds
With all respect, the manpages are one of your best friends:
# man 1M ping
...and if you didn't know too look in section 1M you could learn that via:
# whereis ping
...which would return:
ping: /usr/sbin/ping /usr/share/man/man1m.Z/ping.1m
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2005 10:31 AM
тАО09-11-2005 10:31 AM
SolutionI should have added that if you change the default timeout value (-m) then you MUST specify the '-n' count too. Of course, the manpages document that :-))
# ping servername -n 1 -m 25
...issues one (-n 1) packet and sets the timeout to 25-seconds (-m).
There is also a '-I interval' which sets the number of seconds between packets. It defaults to one. If you thus wanted to ping a server 5-times with 3-seconds between each ping, you would do:
# ping -I 3 servername -n 5
Perhaps this is the "interval" you meant.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2005 08:46 PM
тАО09-11-2005 08:46 PM
Re: changing ping interval
#ping -t is the preferred option when you need to ping for longer intervals. Following link may be of help
http://docs.hp.com/en/B2355-90692/ping.1M.html
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2005 08:58 PM
тАО09-11-2005 08:58 PM
Re: changing ping interval
note that with ping, the -m timeout overrides the default timeout value (10 seconds) which ping uses to timeout (in seconds) when a host or network is unreachable. This option is valid only with the -n option or when count is specified. The -m option should not be used with count equal to 0.
The -m option is not effective for reachable hosts or networks.
(extract from man ping)
# ping
Usage: ping [-oprv] [-I interval] host [-n count [-m timeout]]
ping [-oprv] [-I interval] host packet-size [[-n] count [-m timeout]]
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2005 11:34 PM
тАО09-12-2005 11:34 PM
Re: changing ping interval
You can try with -n option for number of ping requests.
# ping hostname -n 5 [ Will ping 5 times ]
In hp-ux B.11.00 the -m option is not there. And gives error.
#ping host05 -n 1 -m 10
Usage: ping [-oprv] [-i address] [-t ttl] host [-n count]
ping [-oprv] [-i address] [-t ttl] host packet-size [[-n] count]
----------------------------------------
Where as hp-ux 11i having -m option.
Usage: ping [-oprv] [-I interval] host [-n count [-m timeout]]
ping [-oprv] [-I interval] host packet-size [[-n] count [-m timeout]]
----------------------------------------
Cheers,
Raj.