I found the "NETSTAT OPTION(*IFC)" does not support OUTPUT(*PRINT). Is there any way to obtain the TCP/IP status and put in a DSPLF such that I can perform the check by program? Thank you!!
Announcement
Collapse
No announcement yet.
Netstat - output(*print)
Collapse
X
-
Re: Netstat - output(*print)
Originally posted by Thunder View PostI found the "NETSTAT OPTION(*IFC)" does not support OUTPUT(*PRINT). Is there any way to obtain the TCP/IP status and put in a DSPLF such that I can perform the check by program? Thank you!!
NETSTAT OPTION(*IFC)
F24=More keys ---> F6=Print list
-
-
Re: Netstat - output(*print)
Hello
Regarding NETSTAT output.
I need to know the JOB who are using a specific connection.
This information is available by:
NETSTAT OPTION(*CNN)
Work with TCP/IP Connection Status
System: PASSAT
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
* * as-svrmap 004:48:17 Listen
* * exec 061:34:57 Listen
* * rmc 061:36:20 Listen
* * il1170 061:34:28 Listen
* * il1171 061:34:27 Listen
* * il1172 061:34:21 Listen
* * il1174 061:34:15 Listen
* * 1414 061:36:26 Listen
* * 1912 000:09:37 Listen
* * il1922 000:14:24 Listen
* * 1926 001:08:43 Listen
* * il1934 061:34:01 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
[/SIZE][/FONT][/SIZE]
OPTION 8
Display Jobs Using Connection
System: PASSAT
Connection type . . . . . . : *TCP
Local address . . . . . . . : *
Local port . . . . . . . . . : 4042
Remote address . . . . . . . : *
Remote port . . . . . . . . : *
Type options, press Enter.
5=Work with job
Opt Name User Number Opt Name User Number
IL4042 ILGROUP 649136
IL40428 ILGROUP 650346
Bottom
F3=Exit F5=Refresh F6=Print F9=Command line F12=Cancel
this is the information I am looking for.
The jobs which are using port 4042.
Can someone suggest how to print this list of jobs, per port number using CL/RPG/REXX/SQL ?
Thank you !!!
Comment
Comment