HOWTO AIX:CONFIGURING LU6.2 SESSIONS TO

ITEM: RTA000042838



*********************************************************************           
** This item contains information that is intended to be helpful,  **           
** accurate and act as a guide of HOW TO accomplish a given system **           
** task.  The provided explanations, techniques and procedures     **           
** have been reviewed for technical accuracy and applicability,    **           
** but have not been tested in every possible environment or       **           
** situation. Normal precautions should be taken in adopting these **           
** same techniques and procedures, because as product and system   **           
** interfaces change, so would the usage of this information       **           
** change.                                                         **           
*********************************************************************           
                                                                                
1.0 INTRODUCTION                                                                
                                                                                
This HOWTO describes the steps to follow when configuring LU6.2                
sessions to execute the sample 'sendto' and 'rcvfrom' code found                
in the /usr/lpp/sna/samples directory.  This code will transfer a               
file between two RISC System/6000's running SNA Services/6000.                  
Token-Ring is used for the physical connection between the                      
two systems.                                                                    
                                                                                
This HOWTO assumes the user is familiar with the System Management              
Interface Tool (SMIT) and that SNA Services/6000 has been installed.            
It is also assumed the token-ring adapter has been installed and its            
data link device defined.  This HOWTO was tested with AIX version 3.2.5         
and SNA Services/6000 version 1.2.101.315.                                      
                                                                                
NOTE:  ##############################################################           
#####################################################################           
##                                                                 ##          
## This item contains characters that may not print or display     ##           
## correctly on all systems.  A flag line has been placed BENEATH  ##           
## each line that contains one or more of those characters.  Flag  ##           
## lines can be identified by the characters "@@" in columns 71    ##           
## and 72.  The position of each unprintable or non-displayable    ##           
## character is identified by one of the following letters         ##           
## contained in the flag line and located directly beneath that    ##           
## character.                                                      ##           
##                                                                 ##           
##    A - left square bracket          F - caret (circumflex)      ##           
##    B - right square bracket         G - logical not             ##           
##    C - left brace                   H - exclamation point       ##           
##    D - right brace                  I - vertical bar            ##           
##    E - percent sign                 J - back slash              ##           
##                                     K - tilde                   ##          
##                                                                 ##           
#####################################################################           
#####################################################################           
                                                                                
2.0 CONFIGURATION CHECKLIST                                                     
                                                                                
The steps to configure SNA Services/6000 and LU6.2 sessions to                  
support the sample file transfer programs (sendto.c and rcvfrom.c)              
supplied with the SNA Services code are described below.  The RISC              
System/6000 configured to receive files will be referred to as the              
"Receive Host".  The RISC System/6000 configured to send files will             
be referred to as the "Send Host".                                              
                                                                                
Step 1 - Login as 'root' user.                                                  
Step 2 - Compile the sample programs "sendto.c" and "rcvfrom.c".               
         These are found in the directory /usr/lpp/sna/samples.                 
         Compile with the following commands:                                   
            cd /usr/lpp/sna/samples                                             
            cc sendto.c -o /bin/sendto -l sna                                   
            cc rcvfrom.c -o /bin/rcvfrom -l sna                                 
Step 3 - On the Receive Host, run 'netstat -v' and record the                   
         Hardware Address here for future use _____________________             
         (ie. 10:00:5a:a8:6d:ec should be listed as 10005AA86DEC)               
Step 4 - Configure the SNA profile definitions necessary to                     
         link the two RISC System/6000's over a Token-Ring attachment           
         using SMIT's Quick Configuration option for LU6.2.                     
Step 5 - Update additional SNA profiles as noted below.                         
Step 6 - Start SNA on both machines:                                            
           startsrc -s sna                                                      
Step 7 - On the Receive Host, start the sna connection:                        
           startsrc -t connection -o REC_LU6                                    
Step 8 - On the Send Host, start the sna attachment:                            
           startsrc -t attachment -o SEND_LU6                                   
Step 9 - Check to see if everything became active:                              
           lssrc -ls sna                                                        
         On the Receive Host you should see:                                    
             "sna" Program, Process ID xxxx                                     
           REC_LU6     Attachment    - active                                   
           REC_LU6     Connection    - active                                   
Step 10 - To send a file from the Send Host to the Receive Host:                
           sendto SEND_LU6                   
                                                                                
*************************************************************************       
****                                                                            
                                                                               
3.1  DETAILED SMIT SCREENS FROM STEPS 4 & 5 FOR RECEIVE HOST                    
                                                                                
>> On the Receive Host, use the following SMIT fastpath:                        
   smit _snaqc                                                                  
                                                                                
-------------------------------------------------------------------------       
---                                                                             
                     Quickly Configure an LU6.2 Connection                      
                                                                                
Type or select a value for the entry field.                                     
Press Enter AFTER making all desired changes.                                   
                                                                                
                                                        -Entry Fields-          
* Quick Configuration NAME (maximum 12 characters)   -REC_LU6-                  
                                                                               
-------------------------------------------------------------------------       
---                                                                             
                                                                                
>> Note: Enter Quick Configuration NAME (becomes the name of most               
profiles)                                                                       
                                                                                
-------------------------------------------------------------------------       
---                                                                             
               Quickly Configure an LU6.2 Connection: Attachment                
                                                                                
Type or select a value for the entry field.                                     
Press Enter AFTER making all desired changes.                                   
                                                                                
                                                        -Entry Fields-          
* Do you wish to configure to an EXISTING             no                       
  network attachment?                                                           
                                                                                
-------------------------------------------------------------------------       
---                                                                             
             Quickly Configure an LU6.2 Connection: New Attachment              
                                                                                
Type or select a value for the entry field.                                     
Press Enter AFTER making all desired changes.                                   
                                                                                
                                                        -Entry Fields-          
* Select a default network ATTACHMENT type from the   token_ring_listen         
  list.                                                                         
                                                                                
-------------------------------------------------------------------------       
---                                                                            
                Quickly Configure an LU6.2 Connection: Information              
                                                                                
Type or select values in entry fields.                                          
Press Enter AFTER making all desired changes.                                   
                                                                                
                                                        -Entry Fields-          
  Quick Configuration NAME                            REC_LU6                   
  -------------------------------------------------                             
  Fully qualified LOCAL LU name                      -NET.REC-                  
  Local LU ADDRESS (1-255 0=Independent LU)          -0-                        
  If Local LU Address is specified (other than 0),                              
     XID node ID                                     -07100000-                 
  MODE name                                          -MDEFAULT-                 
  Local Transaction Program (TP) name (full path)    -/bin/rcvfrom-             
  -------------------------------------------------                            
  Fully qualified REMOTE LU name                     -NET.SEND-                 
  Remote Transaction Program (RTP) name              -rcvfrom-                  
  -------------------------------------------------                             
  ATTACHMENT                                          token_ring_listen         
-------------------------------------------------------------------------       
---                                                                             
>>                                                                              
1. Enter the fully qualified LOCAL LU name. The LOCAL LU name must match        
the                                                                             
   the REMOTE LU name of the Send Host.                                         
2. Enter MDEFAULT for MODE name. (MDEFAULT is used for convenience only).       
   Note: The MODE name must match on both Send and Receive Hosts.               
3. Enter /bin/rcvfrom for Local TP name.                                        
   This needs to match the target executable program (compiled in Step          
2).                                                                            
4. Enter REMOTE LU name. The REMOTE LU name must match                          
   the LOCAL LU name of the Send Host.                                          
Note: In the fully qualified LU names above, NET is a Network name.             
      Allocation 112 errors occur when this is left off.                        
                                                                                
-------------------------------------------------------------------------       
---                                                                             
                                                                                
*************************************************************************       
                                                                                
3.2  DETAILED SMIT SCREENS FROM STEPS 4 & 5 FOR SEND HOST                       
                                                                                
>> On the Send Host, use the following SMIT fastpath:                           
   smit _snaqc                                                                  
                                                                               
-------------------------------------------------------------------------       
---                                                                             
                     Quickly Configure an LU6.2 Connection                      
                                                                                
Type or select a value for the entry field.                                     
Press Enter AFTER making all desired changes.                                   
                                                                                
                                                        -Entry Fields-          
* Quick Configuration NAME (maximum 12 characters)   -SEND_LU6-                 
                                                                                
-------------------------------------------------------------------------       
----                                                                            
                                                                                
>> Note: Enter NAME (becomes the name of most profiles)                         
                                                                               
-------------------------------------------------------------------------       
---                                                                             
               Quickly Configure an LU6.2 Connection: Attachment                
                                                                                
Type or select a value for the entry field.                                     
Press Enter AFTER making all desired changes.                                   
                                                                                
                                                        -Entry Fields-          
* Do you wish to configure to an EXISTING             no                        
  network attachment?                                                           
                                                                                
-------------------------------------------------------------------------       
---                                                                             
             Quickly Configure an LU6.2 Connection: New Attachment              
                                                                               
Type or select a value for the entry field.                                     
Press Enter AFTER making all desired changes.                                   
                                                                                
                                                        -Entry Fields-          
* Select a default network ATTACHMENT type from the   token_ring_call           
  list.                                                                         
-------------------------------------------------------------------------       
---                                                                             
                                                                                
>> Set ATTACHMENT type to token_ring_call.                                      
-------------------------------------------------------------------------       
---                                                                             
               Quickly Configure an LU6.2 Connection: Information               
                                                                                
Type or select values in entry fields.                                         
Press Enter AFTER making all desired changes.                                   
                                                                                
                                                        -Entry Fields-          
  Quick Configuration NAME                            SEND_LU6                  
  -------------------------------------------------                             
  Fully qualified LOCAL LU name                      -NET.SEND-                 
  Local LU ADDRESS (1-255 0=Independent LU)          -0-                        
  If Local LU Address is specified (other than 0),                              
     XID node ID                                     -07100000-                 
  MODE name                                          -MDEFAULT-                 
  Local Transaction Program (TP) name (full path)    -/bin/rcvfrom-             
  -------------------------------------------------                             
  Fully qualified REMOTE LU name                     -NET.REC-                  
  Remote Transaction Program (RTP) name              -rcvfrom-                  
  -------------------------------------------------                            
  ATTACHMENT                                          token_ring_call           
  Link ADDRESS                                       -10005AA86DEB-             
                                                                                
-------------------------------------------------------------------------       
---                                                                             
>>                                                                              
1. Enter the fully qualified LOCAL LU name. The LOCAL LU name must match        
the                                                                             
   the REMOTE LU name of the Receive Host.                                      
2. Enter MDEFAULT for MODE name. (MDEFAULT is used for convenience only).       
   Note: The MODE name must match on both Send and Receive Hosts.               
3. Enter /bin/rcvfrom for Local TP name.                                        
   This needs to match the target executable program (compiled in Step          
2).                                                                             
4. Enter REMOTE LU name. The REMOTE LU name must match                         
   the LOCAL LU name of the Receive Host.                                       
5. Enter your unique Link Address (saved in Step 3 of CONFIGURATION             
CHECKLIST)                                                                      
                                                                                
Note: In the fully qualified LU names above, NET is a Network name.             
      Allocation 112 errors occur when this is left off.                        
                                                                                
-------------------------------------------------------------------------       
---                                                                             
                                                                                
*************************************************************************       
                                                                                
4.0  ERROR RESOLUTION                                                           
                                                                                
If you get the following errors, follow the listed Action  described           
below.                                                                          
                                                                                
0513-056 Timeout waiting for command response.                                  
                                                                                
Action: Make sure SNA services is started and try again.                        
                                                                                
0105-732  The datalink device for attachment "REC_LU6" is invalid.              
                                                                                
Action: Add SEND as LOCAL LINK name in Token Ring Physical Link Profile         
                                                                                
0105-734  The profiles for attachment "SEND_LU6" have an invalid                
value.  Check the local link name in the physical link profile.                 
                                                                                
Action: Add REC as LOCAL LINK name in Token Ring Physical Link Profile          
                                                                               
0105-920  Start attachment cannot find the specified remote station.            
                                                                                
Action: Make sure SNA services is started and try again.                        
                                                                                
allocate failed, errno = 112                                                    
                                                                                
Action: This is returned from the sendto program. Check to make sure that       
the LU names (entered in the Quick Configure Screens above) are fully           
qualified. They need to contain a network name or else a period is              
prefixed onto the rest of the name, which is unexpected and usually             
creates this problem. Otherwise you may have a typo in one of your LU           
names.                                                                          
                                                                                
 *****************************************************************         
 ** If you have found this information to be informative and    **        
 ** useful, please let us know via a HONE FEEDBACK or via EQUAL.**         
 ** Make sure in your evaluation to reference the appropriate   **         
 ** INFOSYS or FLASH number.                                    **         
 ** We would like to develop as many HOWTO items as needed      **         
 ** and solicit your suggestions, comments and recommendations  **         
 ** on how to make these entries more useful. We need to know   **         
 ** the value of this information to determine whether it is    **         
 ** worth IBM time and resource to continue to create and       **         
 ** maintain HOWTO items.                                       **         
 *****************************************************************         
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                                
This item was created from library item Q660220      2BNPS                     
                                                                                
Additional search words:                                                        
$$A AIX ALTERNATE APR94 CODE CONFIGURING EXAMPLE EXEC EXECUTE                   
EXECUTION EXECUTOR HOWTO INDEX IX LU MANAGEMENT OP OZIBM OZNEW                  
RECEIVE RECEIVED RISC RISCMGMT RISCSYSTEM RISC6000 SAMPLE SEND SENT             
SERVICE SERVICES SESSION SESSIONS SN SNA SOFTWARE SUPPLIED SYS                  
SYSTEM 2BNPS 6.2                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000042838 ITEM: RTA000042838
Dated: 03/1996 Category: RISCMGMT
This HTML file was generated 99/06/24~12:43:17
Comments or suggestions? Contact us