I am able to ping google.com
However, I am able to see like google.com (172.xx.xx.xx).
When the ping is done, like 5 packet transmitted but zero packet recieved. How do I go about re-mediating it?
This is a sed control file we use to report no return after doing a ping to a number of remote computers. Run this file after specifying sed -n -f following_code log_of_pings .
You may have to experiment with the s commands to format the name of your remote computers. The N appends the line following "ping statistics" so it can be checked for "0 packets" while info on the remote computer is on the "same" line (before a line feed).
You are proving that you can lookup the DNS name to give you an IP address and indeed you may be sending packets and requests out from your server, but zero packets received means:-
The target IP is not active
There is no route to the target IP (you mention google.com but then a 172.x.x.x private address)
Your outbound IP tables may filter them out
Your network devices may filter them out
The target IP may ignore you
The target IP may try to respond but your public-facing proxy may filter them out
The target IP may try to respond but your internal network devices may filter them out
The target IP may try to respond but your inbound IP tables may filter them out
A ping is one type of packet, so it does not guarantee that you will actually be able to hold a conversation with the target address.
What is your eventual intention for which I presume that this is a step? Perhaps there is a better way to be monitoring what it is that you really need.
Thread title changed from "Can ping out but cannot recieved" to "Can ping out but cannot receive" hoping to get better matches on similar thread topics.
This User Gave Thanks to Don Cragun For This Post:
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
HOSTS="192.168.138.155"
COUNT=4
pingtest(){
for myhost in "$@"
do
ping -c "$COUNT" "$myhost" &&return 1
done
return 0
}
if pingtest $HOSTS
#100% failed... (4 Replies)
trying to clone a zfs file system on the same system using
zfs send -r root/branch@snapshot |zfs receive root/newbranch and get the following error :parent does not exist. How do I fix this? (1 Reply)
Hi
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
if ($p->ping($host,1)){
print "$host is alive.\n";
}
else {
print "$host is unreacheable.\n";
}
$p->close();... (4 Replies)
I have two application server appserver1 and appserver 2. A script will run from appserver1 which main activity is
1. Connect with the apserver 2 and run a script which saved on appserver2
2. the saved script will in appserver 2 will complete its task and generate a log
Problem i need to... (0 Replies)
HI experts,
By using mailx command i can send mails to any email id. and my DNS is like
oper@xyz.com ..... but if someone replied to the mail sent earlier using mailx command. then how to recieve or view that mail ...
Is dre any command to do the same ... Im working on some project and got... (7 Replies)
Hi,
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 152.155.180.8 30
Sending 30 Ping Packets to 152.155.180.8
!!!!!!!!!!!!!.!!!!!!!!!!!!!!!.
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Hi All,
I have an idea on how to transfer file from one unix server to the other unix server but How do I receive files from unix to unix using connectdirect.
Thanks in Advance, (0 Replies)
Hi,
One of the users in our company can send but not receive email. We are using SENDMAIL in conjunction with procmail. The funny thing is that all his sent email is in his /var/spool/mail but the email client does not pick anything up! He is using IMAP.
Anyone see have any ideas? (2 Replies)