Please post your exact Operating System and version and state what Shell you prefer.
There is so much variation in TCP/IP commands that there is no generic answer.
for example, Google is 74.125.227.49 (from a ping)
but
host google.com says:
google.com has address 173.194.34.52
google.com has address 173.194.34.48
google.com has address 173.194.34.49
google.com has address 173.194.34.50
google.com has address 173.194.34.51
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.
---------- Post updated at 05:08 AM ---------- Previous update was at 05:01 AM ----------
Quote:
Originally Posted by ahamed101
Something like this?
If ping succeeded, the IP will have the ip address.
If your OS is solaris, then this will not work!
HTH
--ahamed
what's val?
the ping gives somethign like this:
ping "google.com" -c 1
how do you extract the ip from that?
PING google.com (173.194.34.48) 56(84) bytes of data.
64 bytes from par03s03-in-f16.1e100.net (173.194.34.48): icmp_seq=1 ttl=57 time=4.31 ms
--- google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 4.314/4.314/4.314/0.000 ms
Hello folks;
I'm trying to write a shell script to ping 5 hosts i have once every 1 hour and if it receives any failure from any of those hosts, it sends an email alert with the results from this failing ping.
Any help would be greatly appreciated (1 Reply)
Hi,
I need to set up a script that would write the results of the ping command from one AIX server to another file may be every minute. Like this I need to gather the data for a period of 24 hours.
Can someone please help me with this?
G (5 Replies)
I need to ping websites and I need to see which one has the highest delay.
My problem is I need to extract the name Facebook and the time=74.0 ms using awk. I need help doing this please...
PING facebook.com (173.252.90.36) 56(84) bytes of data.
64 bytes from... (5 Replies)
Hi,
I have a rather strange IP question...
Here's my problem:
I have a Linux box (call it "turing") with 2 NICs.
One network interface (eth0) has an IP assigned, say 192.168.42.50.
The other interface (eth1) is up, but has no IP yet.
My question: is it possible to determine from... (3 Replies)
Dear all,
I face some problem as below.
I have a sun fire 280r server in a network. From that server i am able to ping any system in any network. But i am facing the problem when i try to ping the server from outside netwok. Once i give ping command in the server then only i try to... (1 Reply)
Keep in mind that I haven't done Perl scripting for a LONG time, so I'm quite rusty.
This is what I would like to do:
- using fork, create 3 or 4 processes to read 3 or 4 different text documents containing server names or IP addresses
- in each of those processes, Perl will ping each of those... (7 Replies)
Dear Expert,
i have linux box that is running in the windows domain, BUT did not being a member of the domain. as I am not the System Administrator so I have no control on the server in the network, such as modify dns entry , add the linux box in AD and domain record and so on that relevant.
... (2 Replies)
Hi,
How to ping an ip from an unix machine. Can you please let me know the exact command. I used and i got the below error
ping 171.18.17.2
bash: ping: command not found
Thanks n regards
Ammu (1 Reply)
Hey all. I have a long list of IP addresses I want to ping. The IP's are located in a flat file "ping_info.dat".
I was wondering what the best way to go about this would be. Can someone help me out? (2 Replies)
hi All
my Redhat Linux server stopped responding to pings all together. and am also not able to ping out of the box. There are however no issues with internet connectivity and my application is working fine. When I tried to ping another machine (Win98) i could see the pings coming from my... (2 Replies)