The JPing class is a command line utility that allows you to query your servers to see which services are running and which ports are in service. To query your servers from within a Java™ application, use the AS400JPing class.
See the JPing javadoc for more information about using JPing from within your Java application.
Call JPing from the command line by using the following syntax:
java utilities.JPing System [options]
where:
You can use one or more of the following options. For options that have abbreviations, the abbreviation is listed in parenthesis.
For example, use the following command to ping the as-dtaq service, including ssl ports, with a timeout of 5 seconds:
java utilities.JPing myServer -s as-dtaq -ssl -t 5000