SCPCMS

The following is a sample help file for SCPCMS:

                                                              

Use the SCPCMS  command to:                                       
                                                                               
   o Securely copy a file from one host to another                             
                                                                               
The format of the SCPCMS command is:

                                                                                
 >>--SCPCMS---flags--from--to---------------------------------------><          
                                                                                

where:                                                                                
flags

     Flags that modify the operation of the SCPCMS command:                    
                                                                               
          -i <identity file> - key file for public key authentication          
          -p                 - preserve file attributes                        

 

          -r                 - recursively copy directories                    
          -l                 - convert sent filenames to lowercase             
          -v                 - verbose output                                  
          -q                 - disable progess meter                           
          -C                 - enable compression (unsupported)                
          -P <port>          - remote port number                              
          -s                 - remote password                                 
          -t                 - translate to/from ASCII/EBCDIC                  
          -g                 - use DH group1 key exchange                      
          -d                 - save SSH packets to debug.pkt                   
                                                                               
from
      <localfile | username@remotehost:remotefile>                             
     Name or IP address of host you are connecting to                          
                                                                               
to
          to = <localfile | username@remotehost:remotefile>                    
     Name of user account you are connecting to (case sensitive)               
                                                                               
username
     Name of user account you are connecting to (case sensitive)               
                                                                               
remotehost
     Name or IP address of host you are connecting to                          
                                                                               
localfile and remotefile
     For CMS files:                                                            
         fn.ft.<fm | pool:dir>                                                 
            fn - Filename                                                      
            ft - Filetype                                                      
            fm - Filemode (default 'A')                                        
            pool - SFS poolname                                                
            dir  - SFS directory specification                                 
                                                                               
     For BFS files - not supported yet.                                        
                                                                               
     For UNIX files - standard UNIX pathname conventions                       
                                                                               
command
     Command that you want to execute on the target system                     
                                                                               
Usage Notes:
                                                                               
   1. Currently compression is not supported.                                  
                                                                               
   2. BFS supported is slated for a future release.                            
                                                                               
   3. If you are prompted for a password (i.e. not using key support)          
      the password will be echoed to the console.                              
                                                                               
   4. Key generation is done using the Putty or linux ssh-keygen               
      utility. The command understands the Putty private key format,           
      the SSH dsa and rsa formats. The resulting file needs to be              
      uploaded to your CMS account in ASCII mode and then have the             
      KEYFIX EXEC run against it.                                              
                                                                               
   5. Examples:                                                                
                                                                               
     Copy from CMS to remote using private key and translating

                                                                                
      scpcms -i dsa.ppk -t zmrep.c.user01:neale.testdir neale@example.com:testdi
      SCPCMS v0.2.1                                                             
      Sending:                                                                  
      ZMREP.C (1078 bytes):                                                     
                                                                                
      |******************************| 1 kB                                     
                                                                                
      Ready;                                                                    
                                                                                
     Copy binary file from remote site using private key
                                                                                
      scpcms -i rsa.ppk neale@example.com:prcs.tar.gz hwcs.tar.user01:neale.test
      SCPCMS v0.2.1                                                             
      Receiving:                                                                
      PRCS TAR USER01:NEALE.TESTDIR (4043669 bytes):                            
      |                              | 4 kB                                     
      |                              | 8 kB                                     
      |                              | 12 kB                                    
      |                              | 16 kB                                    
      |                              | 20 kB                                    
      :                                                                         
      ...editted for brevity...                                                 
      :                                                                         
      |***************************** | 3944 kB                                  
      |***************************** | 3948 kB                                  
      |******************************| 3948 kB                                  
                                                                                
      Ready;                                                                    
                                                                                
     Copy binary files from remote using wildecard                          
                                                                                
      scpcms -i rsa.ppk neale@example.com:*.c user01:neale.testdir.             
      SCPCMS v0.2.1                                                             
      Receiving:                                                                
      SCPCMS C USER01:NEALE.TESTDIR. (43609 bytes):                             
      |**                            | 4 kB                                     
      |*****                         | 8 kB                                     
      |********                      | 12 kB                                    
      |***********                   | 16 kB                                    
      |**************                | 20 kB                                    
      |****************              | 24 kB                                    
      |*******************           | 28 kB                                    
      |**********************        | 32 kB                                    
      |*************************     | 36 kB                                    
      |****************************  | 40 kB                                    
      |******************************| 42 kB                                    
                                                                                
      SSHBN C USER01:NEALE.TESTDIR. (21168 bytes):                              
      |*****                         | 4 kB                                     
      |***********                   | 8 kB                                     
      |****************              | 12 kB                                    
      |**********************        | 16 kB                                    
      |****************************  | 20 kB                                    
      |******************************| 20 kB                                    
                                                                                
      SSH C USER01:NEALE.TESTDIR. (12475 bytes):                                
      |*********                     | 4 kB                                     
      |*******************           | 8 kB                                     
      |***************************** | 12 kB                                    
      |******************************| 12 kB                                    
                                                                                
      STAGING C USER01:NEALE.TESTDIR. (3065 bytes):                             
      |******************************| 2 kB                                     
                                                                                
      Ready;                                                                    
                                                                                
     Copy the contents of a CMS SFS directory to remote site
                                                                                
      scpcms -i rsa.ppk -t user01:neale.testdir neale@example.com:.             
      SCPCMS v0.2.1                                                             
      Sending:                                                                  
      PRCS.TAR (4044657 bytes):                                                 
                                                                                
      |                              | 4 kB                                     
      |                              | 8 kB                                     
      |                              | 12 kB                                    
      |                              | 16 kB                                    
      |                              | 20 kB                                    
      :                                                                         
      ...editted for brevity...                                                 
      :                                                                         
      |***************************** | 3944 kB                                  
      |***************************** | 3948 kB                                  
      |******************************| 3949 kB                                  
                                                                                
      SCPCMS.C (43620 bytes):                                                   
                                                                                
      |**                            | 4 kB                                     
      |*****                         | 8 kB                                     
      |********                      | 12 kB                                    
      |***********                   | 16 kB                                    
      |**************                | 20 kB                                    
      |****************              | 24 kB                                    
      |*******************           | 28 kB                                    
      |**********************        | 32 kB                                    
      |*************************     | 36 kB                                    
      |****************************  | 40 kB                                    
      |******************************| 42 kB                                    
                                                                                
      SSH.C (12479 bytes):                                                      
                                                                                
      |*********                     | 4 kB                                     
      |*******************           | 8 kB                                     
      |***************************** | 12 kB                                    
      |******************************| 12 kB                                    
                                                                                
      SSHBN.C (21174 bytes):                                                    
                                                                                
      |*****                         | 4 kB                                     
      |***********                   | 8 kB                                     
      |****************              | 12 kB                                    
      |**********************        | 16 kB                                    
      |****************************  | 20 kB                                    
      |******************************| 20 kB                                    
                                                                                
      STAGING.C (3066 bytes):                                                   
                                                                                
      |******************************| 2 kB                                     
                                                                                
      ZMREP.C (1078 bytes):                                                     
                                                                                
      |******************************| 1 kB                                     
                                                                                
      Ready;