Determines if services are running on the IBM i system.
JPing can be run as a command line program, as follows:
java com.ibm.as400.util.JPing systemName [ options ]
- Displays the help text.
The -help option may be abbreviated to -h.
- Specifies the specific 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.
- Specifies whether or not to ping the SSL port(s).
The default setting will not ping the SSL port(s).
- Specifies the timeout period in milliseconds.
The -timeout option may be abbreviated to -t. The default
setting is 20000 (20 sec).
- Specifies verbose output.
The -verbose option may be abbreviated to -v. The default
setting is non-verbose.
Here is an example of calling JPing from the command line:
java com.ibm.as400.util.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
To determine from within a program, if the services are running, use