Use the MODIFY command to start and stop tracing after initialization is complete. The MODIFY command for z/OS® FTP has two keywords: one for general tracing (DEBug) and one for extended tracing (DUMP).
Only FTP sessions established after trace is active can be traced. When tracing is stopped, sessions currently connected to the server will continue to be traced; new FTP sessions will not be traced.
>>-+-MODIFY-+--jobname--,---------------------------------------> '-F------' .-------------------. V | >--+-DEBug--=--(----+------------+--,-+-+-----------------------> | +-?----------+ | | +-ACC--------+ | | +-ALL--------+ | | +-BAS--------+ | | +-CMD--------+ | | +-FLO--------+ | | +-FSC--(n)---+ | | +-INT--------+ | | +-JES--------+ | | +-NONE-------+ | | +-PAR--------+ | | +-SEC--------+ | | +-SOC--(n)---+ | | +-SQL--------+ | | +-UTL--------+ | | | (1) | | | '-X--yyy-----' | | .-------------------. | | V | | '-DUmp--=--(----+------------+--,-+--' +-?----------+ +-n----------+ +-ALL--------+ +-FSC--------+ +-JES--------+ +-NONE-------+ +-SOC--------+ +-SQL--------+ | (1) | '-X--yyy-----' >--+---------------------------+--)---------------------------->< +-USERID--(--filter_name--)-+ '-IPADDR--(--filter--)------'
MODIFY jobname,DEBUG=(CMD,INT,FSC,SOC)
If the user ID matches the filter at the time the client logs in, then tracing options are set to the current value of the options. Otherwise, there are no tracing options set. The client might use the SITE command to set options after login if the initial ones are not appropriate. An example for the USERID filter is MODIFY jobname,DUMP=(21,USERID(USER33)) which activates the dumpID 21 trace for a user if the user ID is USER33.
If the IP address matches the filter at the time the client connects, then tracing options will be set to the current value of the options. Otherwise, no tracing options will be set. The client might use the SITE command to set options after connect if the initial ones are not appropriate. An example of the IPADDR filter is MODIFY jobname,DEBUG=(JES,IPADDR(9.67.113.57)) which will activate the JES trace for a client whose IP address is 9.67.113.57. Specify the filter address in dotted decimal format if the IP address is an IPv4 address. Indicate submasking by using a slash followed by a dotted decimal submask. For example, 192.48.32/255.255.255.0 will allow addresses from 192.48.32.00 to 192.48.32.255.
Specify the filter address for an IPv6 address as x:x:x:x:x:x:x:x, where the xs are the hexadecimal values of the eight 16-bit pieces of the address. Alternate notations described in RFC 2373 (IP Version 6 Addressing Architecture) are acceptable.
MODIFY jobname,DEBUG=(JES,IPADDR(FEDC:BA98:7654:3210:FEDC:BA98:7654:3210)
MODIFY jobname,DUMP=(FSC,IPADDR(::1))
Indicate IPv6 network
prefixing using a slash followed by the number of prefix bits. For
example, use 12AB:0:0:CD30::/60 to indicate the prefix 12AB00000000CD3 (hexadecimal). MODIFY JOBNAME,DEBUG=(JES,IPADDR(12AB:0:0:CD30::/60))
MODIFY FTPDJG1,DEBUG=(NONE)
+EZYFT82I Active traces: NONE
MODIFY FTPDJG1,DEBUG=(CMD)
+EZYFT82I Active traces: CMD
MODIFY FTPDJG1,DEBUG=(FSC,USERID(USER33))
+EZYFT82I Active traces: FSC(1)
+EZYFT89I Userid filter: USER33
MODIFY FTPDJG1,DEBUG=(SOC)
+EZYFT82I Active traces: SOC(1)
MODIFY FTPDJG1,DUMP=(NONE)
+EZYFT83I Active dumpIDs: NONE
MODIFY FTPDJG1,DUMP=(21)
+EZYFT83I Active dumpIDs: 21
MODIFY FTPDJG1,DUMP=(22)
+EZYFT83I Active dumpIDs: 22
modify jobname,DUMP=(SQL,SOC) ;sets all SQL and SOC DUMP ID's
modify jobname,DUMP=(NONE) ;resets all DUMP ID's
modify jobname,DUMP=(Xnn) ;resets DUMP ID nn where nn is
;a number between 1 and 99
modify jobname,DUMP=(XFSC) ;resets all DUMP ID's 20 to 49
modify jobname,DUMP=(XSOC) ;resets all DUMP ID's 50 to 59
modify jobname,DUMP=(XJES) ;resets all DUMP ID's 60 to 69
modify jobname,DUMP=(XSQL) ;resets all DUMP ID's 70 to 79
modify jobname,DUMP=(NONE,JES,X61) ;resets all ID's and
;then sets all JES DUMP ID's
;except number 61
MODIFY jobname,DEBUG=(ALL,USERID(USER33))
MODIFY jobname,DUMP=(ALL,USERID(USER33))
Do not specify
the ALL parameter on a routine basis, because it can produce an extensive
amount of trace data.MODIFY jobname,DEBUG=(NONE)
MODIFY jobname,DUMP=(NONE)
For additional information see z/OS Communications Server: IP Diagnosis Guide.