- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PING without waiting for unreachable nodes
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
тАО12-02-2004 02:51 AM
тАО12-02-2004 02:51 AM
I want to check if a node is reachable;
we cannot use any other service but the "/etc/ping" because most of the services are unavailable (i.e. no telnet is allowed, .... ).
Is the "ping" able to check the reachability of the nodes with a fixed minimum timeout (e.g. 1 sec) in all the cases??
We use an algorithm so we don't want to wait too much when waiting for the node check.
regards
Enrico
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 03:05 AM
тАО12-02-2004 03:05 AM
Re: PING without waiting for unreachable nodes
ping $hostname -n 1 -m 1
rc=$?
if [ $rc -eq 0 ]
then
echo "$hostname reached successfully..."
else
echo "$hostname not reached...."
fi
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 03:07 AM
тАО12-02-2004 03:07 AM
Re: PING without waiting for unreachable nodes
If I believe my BB config I would say no, that is BigBrother reports sometimes hosts:
[2221012] street.conn red Mon Jun 14 11:09:38 MET DST 2004 bb-network.sh: Can't ping street...
But If you ping the host you see its alive, that means BB pings once and if no reply it considers as not responding...
So I would say be causious on the fixed minimum ( not 1 sec...)
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 03:08 AM
тАО12-02-2004 03:08 AM
Re: PING without waiting for unreachable nodes
Use -c and -w options:
ping -c
example: ping -c 1 -w 1 servername, ping one request to servername and wait for a reply during one second maximum.
NB: -w option works only with -c options
Rgds
JMB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2004 02:04 AM
тАО12-03-2004 02:04 AM