[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 4

ntx_ping Command

Purpose

Sends an echo request to a network host from the Network Terminal Accelerator (NTX).

Syntax

ntx_ping-d Device ] [ -h ] [ -t TimeOut ] Host

Description

Attention: You should stop this program with a kill signal. Do not use the kill -9 command since the command may not properly close the diagnostic channel.

The ntx_ping command sends an echo request to a network host. The command uses the Network Terminal Accelerator diagnostic to send an Internet control message protocol (ICMP) ECHO_REQUEST datagram to a host. The command expects an ECHO_RESPONSE datagram in return. The datagrams are 64 bytes in length. If the host responds within the specified timeout (specified in seconds), the ntx_ping command prints host is alive . Otherwise it prints no answer from host .

Flags

-d Device Specifies the adapter raw-device file name. The default is the /dev/rhp0 file.
-h Retrieves the file descriptor for the adapter from standard input. This flag is only useful when running the ntx_ping command via the execve subroutine. Because of the way the shell handles redirection, command lines of the type ntx_ping ... -h hostname < device do not work.
-t TimeOut Specifies the time to wait, in seconds, for a response. The default is 20 seconds.

Parameters

Host Specifies a host name or an Internet address.

Exit Status

This command returns the following exit values:

0 Successful completion.
>0 An error occurred.

Security

Access Control: Any user.

Auditing Events: N/A

Examples

To send a ping command echo request to a host named fred , enter:

ntx_ping fred

Files

/usr/bin/ntx_ Contains the ntx_ command.
/dev/rhp0 Default NTX raw device file name.

Related Information

Files: /dev/rhp.

"Configuring the Network Terminal Accelerator" in AIX Versions 3.2 and 4 Asynchronous Communications Guide


[ Previous | Next | Contents | Glossary | Home | Search ]