HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem using "ping" in shell script
Operating System - HP-UX
1827870
Members
1260
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-28-2006 07:51 PM
05-28-2006 07:51 PM
Problem using "ping" in shell script
I got a script (Sorry it is on solaris 8) with the ping command as below:
/usr/sbin/ping -s $HOST 16 10 >> $LOG
However, the result in $LOG content useless line as below:
PING ctg-fid-01: 16 data bytes
24 bytes from ctg-fid-01.hk.hibm.hsbc (130.1.73.10): icmp_seq=0. time=1. ms
ICMP Time exceeded in transit from 130.20.61.254
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33434
ICMP Time exceeded in transit from 130.20.61.254
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33435
ICMP Time exceeded in transit from 130.20.61.254
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33436
ICMP Time exceeded in transit from 130.2.16.173
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33437
ICMP Time exceeded in transit from 130.2.16.173
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33438
How can I skip these lines from being logged into $LOG? Please help. Thanks a lot.
/usr/sbin/ping -s $HOST 16 10 >> $LOG
However, the result in $LOG content useless line as below:
PING ctg-fid-01: 16 data bytes
24 bytes from ctg-fid-01.hk.hibm.hsbc (130.1.73.10): icmp_seq=0. time=1. ms
ICMP Time exceeded in transit from 130.20.61.254
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33434
ICMP Time exceeded in transit from 130.20.61.254
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33435
ICMP Time exceeded in transit from 130.20.61.254
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33436
ICMP Time exceeded in transit from 130.2.16.173
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33437
ICMP Time exceeded in transit from 130.2.16.173
for udp from hk-fid-01 (130.20.61.20) to ctg-fid-01.hk.hibm.hsbc (130.1.73.10) port 33438
How can I skip these lines from being logged into $LOG? Please help. Thanks a lot.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2006 08:10 PM
05-28-2006 08:10 PM
Re: Problem using "ping" in shell script
hi;
don't use -s parameter
there is no -s parameter on HP-UX for ping command.
regards;
mustafa
don't use -s parameter
there is no -s parameter on HP-UX for ping command.
regards;
mustafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2006 08:28 PM
05-28-2006 08:28 PM
Re: Problem using "ping" in shell script
Hi,
Solaris generates this message when hop-limit becomes zero. Better look for thin on SunSolaris site.
Regards,
Borislav
Solaris generates this message when hop-limit becomes zero. Better look for thin on SunSolaris site.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2006 08:34 PM
05-28-2006 08:34 PM
Re: Problem using "ping" in shell script
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP