Verifying the FTP client

To verify that the FTP client works correctly, log onto TSO and issue the NETSTAT HOME command, or issue NETSTAT –h from the z/OS® UNIX shell. These commands will show the interface addresses that are known to the system. Below is an example of the output from NETSTAT HOME:
MVS TCP/IP NETSTAT CS V1R9       TCPIP Name: TCPCS           14:22:17    
Home address list:                                                       
LinkName:   OSAQDIO6L                                                    
  Address:  9.67.115.13                                                  
    Flags:  Primary                                                      
LinkName:   LSAMEH                                                       
  Address:  9.1.1.1                                                      
    Flags:                                                               
LinkName:   LOOPBACK                                                     
  Address:  127.0.0.1                                                    
    Flags:                                                               
Address:  fe80::9:6b00:671a:586                                        
    Type:   Link_Local                                                   
    Flags:  Autoconfigured                                               
IntfName:   V6SAMEH                                                      
  Address:  1::8                                                         
    Type:   Global                                                       
    Flags:                                                               
IntfName:   V6VIRT                  
Address:  2::55                   
    Type:   Global                  
    Flags:                          
IntfName:   LOOPBACK6               
  Address:  3::1                    
    Type:   Global                  
    Flags:                          
  Address:  ::1                     
    Type:   Loopback                
    Flags: 

To invoke the FTP client, use any address shown on the NETSTAT HOME address list. The first example below shows how you could log in to the FTP server at 9.67.115.13 using a batch job (the output of the batch job is not shown). The second example shows logging in to the FTP server at 9.67.113.37 from the TSO environment.

//FTPBATCH JOB FTPUSER,           
// USER=USER1,PASSWORD=TCPSUP     
//BATCH  EXEC PGM=FTP             
//OUTPUT  DD SYSOUT=*             
//INPUT DD *                      
  9.67.115.13                   
  USER10 tcpusr                   
  SITE FILE=SEQ                   
  QUIT                            
//*                               

    
Using 'USER1.FTP.DATA' for local site configuration parameters.  
IBM FTP CS V1R9
FTP: using TCPCS
Connecting to: vic135.tcp.raleigh.ibm.com 9.67.113.37 port: 21.
220-FTPD1 IBM FTP CS V1R9 at vic135, 19:07:34 on 2006-10-08.
220 Connection will close if idle for more than 5 minutes. 
>>> FEAT                                                         
211- Extensions supported                                        
 AUTH TLS                                                      
 PBSZ                                                           
 PROT
211 End                                            
NAME (vic135:USER1): 

user1
NAME (vic135:USER1):                                          
>>> USER USER1                                                 
331 Send password please.                                      
PASSWORD:                                                      
                                                               
>>> PASS                                                       
230 USER1 is logged on.  Working directory is "/".             
Command: