|
How to make ping command to show "request timeout" output if no ICMP reply received in Mac OS X?
In Windows command prompt, Ping command can show "Request timed out" when no ICMP reply received. But in MAC OS, can I make its ping command to show similar...
Started by tpenguin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
This is probably what you are looking for:
ping -v.
ping -t 5 microsoft.com
This will exit after five seconds wether the target is alive or not.
You can set a time out with the -t option .
|
|
Can someone point me to some tutorial on how to set up a ping method using C sockets? Using beej's guide, I've been able to set up a connection between two devices, but now I want to setup a method that pings for all available devices before starting ...
Started by Josh Bradley on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Implementing a real ping implementation won't be easy, I'd not just look at the ping source ;)....
The feature was abused for denial of service attacks.
Most current IP stacks will not respond to a ping request to a broadcast address.
|
|
I have a computer at home with ip 192.168. 221 .xxx I have another computer at work that I can ping and it has 2 ip addresses: 192.168. 1 .xxx and 192.168.0.xxx. Those last 2 addresses have the same gateway ie 192.168. 1 .1 . the computer at work is connected...
Answer Snippets (Read the full thread at superuser):
You run this command:
ssh -L 8000:20.20.20.20:22 user@10.10.10.10
Now in a local shell, run this command:
....
Run a command like this:
ssh -L 8000:192.168.0.xxx:yyyy want to connect to C via ssh.
An easy way is to use SSH forwarding.
|
Ask your Facebook Friends
|
I got a call from a tester about a machine that was failing our software. When I examined the problem machine, I quickly realized the problem was fairly low level: Inbound network traffic works fine. Basic outbound command like ping and ssh are working...
Started by Mike Heinz on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
All....
For iptables (I guess your SUSE has iptables firewall) to be setup to let trough only ping ICMP say have a look at the routes ("route" command on Linux), and make sure you don't have like two default routes, or weird ones or whatever.
|
|
I would like to know if it is possible to write a program in C that allows the user to use the "ping" command from command prompt on a windows machine and enter an IP address using the program.
Ex.
Enter an IP address you would like to ping:
User enters...
Started by Integral on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at codingforums):
Why do you need a program to ping an IP when you have command prompt?
and please tell me you're directly.
|
|
I tried the following command unsuccessfully
sdiff <(ping www.nato.int) <(ping www.reuters.com)
Is there any way to have a real-time comparison between ping times?
Started by Masi on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
How about:
watch 'ping -c 4 www.google.com; echo; ping -c 4 www.yahoo.com'
Gives result such as this:
Every 2.0s: ping -c 4 www.google.com; echo; ping -c 4 www.yahoo.com Tue Apr 7 13:57:47 2009 PING --- www.l.google.....
|
|
I'm looking at the ping command help and i cant see a parameter to change the time between pings. I don't mean the timeout time.
(For example i want to send a ping every 5 seconds)
Is this possible?
Started by tm1rbrt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
From a broadband forum :
Batch file
@echo off ....
ping -t will send forever, but at the default rate.
GOTO start
or in a single command
for /L %i in (1,0,2) do @ping -n 1 <destination> & ping -n 5I don't think you can.
|
|
Is there a command line based way to send pings to each computer in a subnet? Like
for (int i = 1;i < 254; i++) ping(192.168.1.i)
to enforce arp resolution?
Answer Snippets (Read the full thread at stackoverflow):
Broadcast ping:
$ ping 192.168.1.255 PING 192.168.1.255 [ $COUNTER -lt 254 ] do ping 192.168.1.$COUNTER -c 1 COUNTER=$(( $COUNTER + 1 )) done
Under linux, I think ping -b ....
Check if this blog post has what you need.
|
|
While trying to setup a MSSQL clustering solution, I am running into a problem that is outside of my expertise that is related to networking.
I was trying to find a free IP to used for my node. I asked the network admin to give me a free IP address. And...
Started by Jimmy Chandra on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at serverfault):
Linux can use that the ping response might be an ICMP error message -- you can try dumping the actual packets with tcpdump error message?
If your....
ping -a <IP> in Windows.
Try to resolve that IP address into a hostname.
Addresses).
|
|
I've got a redhat server that I vnc into and have this strange issue with the terminal.
If I type ping -c 1 [ip address] it just returns an empty line and doesn't execute the ping command?
What's up with that? It's just ping, it's not like it needs configuring...
Started by Hayden on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
When you do that, if the host was unreachable in your above single... .
Are you, it's not going to say anything until you exit ping by hitting Ctrl-C or similar.
Ping "hanging" like that usually indicates network configuration or routing problems.
|