- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to send out one PING in HP-UX only.
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
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
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
03-29-2004 03:13 PM
03-29-2004 03:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 03:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 03:21 PM
03-29-2004 03:21 PM
Re: How to send out one PING in HP-UX only.
ping remotehost -n 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 03:22 PM
03-29-2004 03:22 PM
Re: How to send out one PING in HP-UX only.
You add a timeout of say 30 seconds with the -m 30 addition.
ping hostname -n 1 -m 30
tries one ping for 30 seconds before giving up.
ping hostname -n 1 -m 30
rc=$?
if [ $rc -ne 0 ]
then
echo "error, ping failed"
else
echo "ping worked"
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
03-29-2004 03:24 PM
03-29-2004 03:24 PM
Re: How to send out one PING in HP-UX only.
patrickkuah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 03:27 PM
03-29-2004 03:27 PM
Re: How to send out one PING in HP-UX only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 03:37 PM
03-29-2004 03:37 PM
Re: How to send out one PING in HP-UX only.
crontab -e
* * * * * /usr/sbin/ping hostname -n 1
save and exit
It will ping every minute one time
With best wishes
naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 07:03 PM
03-29-2004 07:03 PM
Re: How to send out one PING in HP-UX only.
Is it ping -s 1 ?? not sure but default is 56 bytes !
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 07:05 PM
03-29-2004 07:05 PM
Re: How to send out one PING in HP-UX only.
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 07:08 PM
03-29-2004 07:08 PM
Re: How to send out one PING in HP-UX only.
while true
do
ping hostname -n 1
sleep 30
done &
You could start this from the command line, a rc script or inittab.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 02:37 AM
03-31-2004 02:37 AM
Re: How to send out one PING in HP-UX only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 05:42 AM
03-31-2004 05:42 AM
Re: How to send out one PING in HP-UX only.
It ok, the problem was solved without writting the ping script.
Actually my senario is i have two load balancers which one is the primary and the other is the backup.
The problem is the failover portion, the mac address of the primary will change to the backup LB and after sometime, all my external client could not connect to the virtual ip anymore but for client in the same segment with the LBs are able to connect.
I found from a HP guy that there is a dead gateway detection feature which might caused this and i disabled it , It works!!! :)
Thank for the help :)