YAMI Ping (yping) tool

Copyright © 2001-2008 Maciej Sobczak


Contents

Introduction


The YAMI Ping utility is a simple diagnostic tool that can help to evaluate the network environment. It was designed specifically to test simplex and duplex connections between two nodes in the network.

Command line options


YAMI Ping tool can be run in two modes: server and client.

To run yping in the server mode, the following syntax should be used:

$ yping server portnumber

The server word is taken literally, whereas the portnumber is the port number on which the server should accept connections.

To run yping in the client mode, the syntax is:

$ yping client address portnumber simplex/duplex timeout

The client word is taken literally. address and portnumber are used to locate the server. simplex and duplex are alternative literals that control the connection types used for pinging. timeout is a timeout expressed in seconds.

Examples

Let's suppose that the server machine has the network address 192.168.1.1 and that the client machine has the address 192.168.1.2 (symbolic addresses can be used, too). In order to test the availability of both simplex and duplex connections between the client and server machines, first run the server:

$ yping server 12340
yping server started. Type 'q' <Enter> to quit...
On the client machine, execute the following command:
$ yping client 192.168.1.1 12340 simplex 10
This will test the simplex connection between client and server with the timeout of 10 seconds. If the server receives the message from the client program, it will print it on the console, like this:
Received ping from 192.168.1.2
If there is a response coming back to client, the client should write on the console:
ping successful
If there is no response on the client side and the timeout expires, it may mean that there is a firewall between client and server that blocks returning connections. The duplex test can confirm this. To test duplex connections, run on the client machine:
$ yping client 192.168.1.1 12340 duplex 10
ping successful
$



Maciej Sobczak 2008-02-01