JPing - check connection to remote services

By kimot, 24 December, 2022

On green screen

JAVA CLASS('utilities.JPing') PARM('System1') CLASSPATH('/QIBM/ProdData/OS400/jt400/lib/jt400.jar')   

On PASE

 java -cp '/QIBM/ProdData/OS400/jt400/lib/jt400.jar' utilities.JPing System1 

 

USAGE: java utilities.JPing [-h] <systemName> [-service <service>] [-ssl] [-verbose]   
[-h | -help]        Help   
[-service | -s]     Service: as-file, as-netprt, as-rmtcmd,   
                             as-dtaq, as-database, as-ddm,   
                             as-central, as-signon   
[-ssl]              Use SSL ports   
[-timeout | -t]     Timeout period in milliseconds.  Default is 20000 (20 seconds).   
[-verbose | -v]     Generate verbose output.

 

Result :

Verifying connections to system SERVER1...                 
                                                          
Successfully connected to server application:  as-file    
Successfully connected to server application:  as-netprt  
Successfully connected to server application:  as-rmtcmd  
Successfully connected to server application:  as-dtaq    
Successfully connected to server application:  as-database
Successfully connected to server application:  as-ddm     
Successfully connected to server application:  as-central 
Successfully connected to server application:  as-signon  
Connection verified                                       
Java program completed