utilities
Class JPing

java.lang.Object
  |
  +--utilities.JPing

public class JPing
extends java.lang.Object

The JPing class is used to determine if OS/400 services are running.

JPing can be run as a command line program, as follows:

java utilities.JPing System [ options ]
Options:

-help
Displays the help text. The -help option may be abbreviated to -h or -?.
-service 0S/400 Service
Specifies the specific OS/400 service to ping. The -service option may be abbreviated to -s. The valid services include: as-file, as-netprt, as-rmtcmd, as-dtaq, as-database, as-ddm, as-central, and as-signon. If this option is not specified, by default, all of the services will be pinged.
-ssl
Specifies whether or not to ping the ssl port(s). The default setting will not ping the ssl port(s).
-timeout
Specifies the timeout period in milliseconds. The -timeout option may be abbreviated to -t. The default setting is 20000 (20 sec).


Here is an example of calling JPing from the command line:

  java utilities.JPing myServer -service as-signon -ssl -timeout 10000
  
The JPing output will look something like the following:
  Verifying connections to system myServer...
  
  Successfully connected to server application: as-signon-s
  Connection Verified
  
To determine, in a program, if the OS/400 services are running, use com.ibm.as400.access.AS400JPing.

See Also:
AS400JPing

Constructor Summary
JPing()
           
 
Method Summary
static void main(java.lang.String[] args)
          Run JPing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPing

public JPing()
Method Detail

main

public static void main(java.lang.String[] args)
Run JPing.