如何将IPv4连接状态发送到JAVA(JT400)应用程序

时间:2013-08-05 21:52:52

标签: java ibm-midrange jt400

  • 我想知道如何将IPv4连接状态发送到Java应用程序

                    Work with IPv4 Connection Status                        
                                                         System:   V172172  
Type options, press Enter.                                                     
3=Enable debug   4=End   5=Display details   6=Disable debug                 
8=Display jobs                                                               

Remote           Remote     Local                                         
Opt  Address          Port       Port       Idle Time  State                   
  *                *          ftp-con >  092:54:32  Listen                  
  *                *          ssh        092:25:07  Listen                  
  *                *          telnet     000:01:20  Listen                  
  *                *          smtp       092:25:36  Listen                  
  *                *          netbios >  092:25:36  Listen                  
  *                *          netbios >  000:00:01  *UDP                    
  *                *          netbios >  000:00:01  *UDP                    
  *                *          netbios >  092:25:32  Listen                  
  *                *          ldap       092:25:31  Listen                  
  *                *          427        000:00:09  *UDP                    
  *                *          427        000:00:01  *UDP                    
  *                *          cifs       092:25:32  Listen                  
                                                                    More... 
F3=Exit   F5=Refresh   F9=Command line   F11=Display byte counts   F12=Cancel  
F20=Work with IPv6 connections   F22=Display entire field   F24=More keys      

  • 我想知道如何获取所有IP地址(到jlistBox或jTable),显示每个IP地址的详细信息(选项5)以及向我的Java应用程序显示IP地址的作业(选项8)

=============================================== ===========================

1 个答案:

答案 0 :(得分:3)

你想打电话给 List Network Connections (QtocLstNetCnn) API。我希望您需要一个服务器端程序来为您连接API,然后使用ProgramCall class调用该程序。

请参阅How to get PSF Settings in an AS400 Server using Java