Skip to main content
title
Source Link
Gilles 'SO- stop being evil'
  • 866.5k
  • 205
  • 1.8k
  • 2.3k

Undocumented behavior Behavior of ping with using PINGpartial packet loss on Ubuntu (and Linux)

I am specifically looking on the return variables of running PINGping on my Ubuntu server, the variables I am looking for is: error status, output on stdout, output on stderr.

When pinging a host the following three scenarios can happen:

  1. The host answers on ALL packets (No error)
  2. The host answers on ZERO packets (Error)
  3. The host answers on SOME packets (Unspecified behavior)

I have read through man ping, a couple of times and can't seem to find what I should expect in that situation.

I have no way to test this, the only machines I have access to is a Linode virtual server running Ubuntu, and my Macbook running Snow Leopard (Probably not with the same PING program as my server)

What should I expect as return variables from the third scenario?

Undocumented behavior with using PING on Ubuntu (and Linux)

I am specifically looking on the return variables of running PING on my Ubuntu server, the variables I am looking for is: error, stdout, stderr.

When pinging a host the following three scenarios can happen:

  1. The host answers on ALL packets (No error)
  2. The host answers on ZERO packets (Error)
  3. The host answers on SOME packets (Unspecified behavior)

I have read through man ping, a couple of times and can't seem to find what I should expect in that situation.

I have no way to test this, the only machines I have access to is a Linode virtual server running Ubuntu, and my Macbook running Snow Leopard (Probably not with the same PING program as my server)

What should I expect as return variables from the third scenario?

Behavior of ping with partial packet loss on Ubuntu

I am specifically looking on the return variables of running ping on my Ubuntu server, the variables I am looking for is: error status, output on stdout, output on stderr.

When pinging a host the following three scenarios can happen:

  1. The host answers on ALL packets (No error)
  2. The host answers on ZERO packets (Error)
  3. The host answers on SOME packets (Unspecified behavior)

I have read through man ping, a couple of times and can't seem to find what I should expect in that situation.

I have no way to test this, the only machines I have access to is a Linode virtual server running Ubuntu, and my Macbook running Snow Leopard (Probably not with the same PING program as my server)

What should I expect as return variables from the third scenario?

Post Migrated Here from serverfault.com (revisions)
Source Link

Undocumented behavior with using PING on Ubuntu (and Linux)

I am specifically looking on the return variables of running PING on my Ubuntu server, the variables I am looking for is: error, stdout, stderr.

When pinging a host the following three scenarios can happen:

  1. The host answers on ALL packets (No error)
  2. The host answers on ZERO packets (Error)
  3. The host answers on SOME packets (Unspecified behavior)

I have read through man ping, a couple of times and can't seem to find what I should expect in that situation.

I have no way to test this, the only machines I have access to is a Linode virtual server running Ubuntu, and my Macbook running Snow Leopard (Probably not with the same PING program as my server)

What should I expect as return variables from the third scenario?