[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smaug::snagwy

Title:SNA GATEWAY NOTEFILE
Notice:Note 1.* -> kits and doc, 288.* -> obtaining product support
Moderator:EDSCLU::GARROD
Created:Fri Feb 07 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:7116
Total number of notes:28576

7045.0. "CPIC help" by BEJVC::YEKUANG () Thu Mar 20 1997 02:08

    	i am doing a porting work for ICBC ,it is an China BANK,the program
    was writen by HP,they write this program by CPIC and the ICBC want us
    to port to our Alpha server 2100A.we can correctly complie the
    program,but it can't correctly run,we want to check the scource code
    of the CPIC program,but we can't find any documentations about our CPIC
    program.Can some one tell me who knows the CPIC in Digital and where can
    i copy or buy these documentations.it's very imporment to us and it's
    very urgent.we need your help.
    
    
    
    
    			thanks and regards
    
    			ye kuang
    
    
    
T.RTitleUserPersonal
Name
DateLines
7045.1some suggestionsFREE::TYREEWed Mar 26 1997 14:2983
The only CPI-C manual provided by Digital is

	DIGITAL SNA APPC/LU6.2 Programming Interface for DIGITAL UNIX

	CPIC-C Implementation Specifics

	Part Number AA-R32CA-TE  (at least thats the part number for
				  version 3.1 which ships in the next
				  month or so).

I'm not sure if this manual was part of the V3.0 kit.

This manual is only about 25 pages long.  It simply references the IBM
CPI-C manual for all the details.  The areas in the manual that might
be helpful are:
	CPI-C  side file
	logmask trace

Here's a quick summary:
	1. The 'side' file:  The default side file on Digital Unix is
		/etc/cpic.conf
           To override, set environmental variable 'CPIC_SYM_FILE' to
           the full path name of your side file.
           
	2. To find out if the CPIC program ever actually talks to 
	   the Digital/SNA gateway (Peer server, ST gateway ...) you 
           could do an SNALOG mask trace:
		SNALOG_FILE=/full/path/name/of/trace/file
		SNALOG_MASK=0x7FFFFFFF
		SNALOG_SIZE=10000

           HINT: This trace file will show traffic between your application
	         and the LU62 server.  If the snalog_file is empty after 
                 running your test, then the there may be something wrong 
                 with the information in the CPI-C side file.
         
The problems I always have getting a CPIC program to run the first time
are:
	a. side file contains wrong information
	b. side file contents do not match configuration on lu62 server
	c. the lu62 server is not up, or has no sessions with partner lu

If I were in your place, I would probably try to get the aping or apingd
program to talk over your network first.  Then I would try to get the
real application to work.  The aping/apingd programs are in 
/usr/lib/sna/examples .  To build,   make -f makefile.cpic

If I couldn't use aping/apingd for some reason, I would:

	a. make sure that the LU62 server was up and running
	b. make sure sna sessions were up between the lu62_server and
	   the partner LU (on a mainframe for instance)
	c. start ctf trace agains the gateway 
	d. run my application with SNALOG_MASK enabled

	If the snalog_mask file is empry,
	   the CPIC program is never talking to the lu62 server.
	   The CPIC side file probably needs to be changed.
        else
        If the snalog_mask file contains stuff,
	   if the CTF trace is empty
	      there is probably a mismatch between the cpic side file
	      information and the LU62 server configuration.
           else
	      look as the lu62 traffic to determine how the transaction
	      progressed:  Did an FMH-5 get sent?
	                   Did the other lu respond with anything?

If you would send me:
    	CPIC side file
    	CPIC program SNALOG_MASK Trace
    	CTF gateway trace
    	LU62 server configuration
    I'll be happy to take a look and try to make suggestions.
    
    Jim
    
    FREE::tyree
    
    


7045.2cminit problem in alpha systemHGOM11::YEKUANGTue Apr 15 1997 23:2959
    hi 
    
    	thank you for your suggestion.
    
    	i am porting the cpic program.and now the program is now working in
    our alpha system.but i meet a problem about the "cminit" function.the
    cpic program like this:
    
    
    		while(1)
    
    			if((pid=fork())==0)
    				break;
    			else
    				continue;
    
    		cminit(conv_id,sym_dest_named,&retcode);
    				.
    				.
    				.
    
    the problem is the cminit command can't run in sub-process.when it run
    in the sub-process,the system show this message:
    
    "sendsig:can't grow stack,pid 819,proc,snaout,sig11,pc 0x241fdf50"
    
    this program's name is snaout.
    
    when i use dbx to trace the program,it show this message:
    
       "signal segment fault"
    
    but when i use the cminit in parent process to installize the sna,it
    can run correctly.the program like this:
    
    	while(1)
    
    		.
    		.
    		.
    	cminit(conv_id,sym_dest_name,&retcode);
    		.
    		.
    		.
    	cnotinue
    
    but in IBM and HP system the cminit command can run correctly in any
    sub-process.
    
    
    		
    
    
    		thanks and redards
    
    		ye kuang
    
    
        
7045.3please open IPMT case ..FREE::TYREEWed Apr 16 1997 12:0025
    
    Thank you for the additional information.
    
    I get a different problem when I:
    
    	main ()
    
    	   if (fork())
    	      exit (0);
    
           normal CPI-C sequence ....
    
    
    I end up with signal Segmentation fault at >*[exc_push_ctx,
    0x3ff810301d0]  at cmallc:736.
    
    
    I will report this to the development group unofficially.  
    
    Please open an IPMT case.  Otherwise, there is no way for the
    development group to know that this is an important problem that has
    an impact on a customer.
    
    Jim
    
7045.4you might try 'static' linkingFREE::TYREEWed Apr 16 1997 21:2422
    
    We did our testing with 'aping.c' in /usr/lib/sna/examples (using
    makefile = makefile.cpic).
    
    If we avoid shared objects by linking with:
    
    	 LIBLIST = -lcpic -threads
    
    instead of
     
         LIBLIST = -L/usr/shlib -lcpic -lc
    
    things work much better.
    
    If you are using shared objects now, perhaps you could try a static
    link to see if the problem goes away.
    
    Jim
    
    
    P.S.  Thanks should go to Danqing Wang for this information.
    
7045.5"cminit" bug?HGOM11::YEKUANGThu Apr 17 1997 05:0466
    hi,
    
    	i add the -threads into the complier command to complier the
    program,when i run the program the command "cminit" can run correctly
    but the command "cmallc" never allocate nay conversation ,but when i
    chang the program to this,it can work.the changed program like this:
    
    
                .
    		.
    		.
        cminit(conv_id,sym_dest_namecd,&retcode);
    	while(1)
    	{
    		.
    		.
    		.
    		if((pid=fork())==0)
    			break;
    		else
    			continue;
    	}
    	cminit(conv_id,sym_dest_namecd,&retcode);
    	cmallc(conv_id,&retcode);
    		.
    		.
    	        .
    
    
    the original program like this:
    
    		.
    		.
    while(1)
    {
    	.
    	.
    	if((pid=fork())==0)
    		break;
    	else
    		continue;
    }
    cminit(conv_id,sym_dest_namecd,&retcode);
    cmallc(conv_id,&retcode);
    		.
    		.
    		.
    
    
    the complie command is:
    
    cc -o snaout snaout.c -lcpic -threads -xtaso_short -taso
    
    the cc command is default to load shareable objects.the default is
    -call_shared.if don't use the -xtaso_short and -taso parameter the 
    program can installize correcttly but can't allocate any conversation.
    the cpic must use the 32-bit pointers.
    
    
    
    			thanks and regards
    
    			ye kuang
    
    
                 
7045.6another view ..FREE::TYREEFri Apr 18 1997 08:504
    
    For another view of whats going on, see CMA note 1526.*.
    
    
7045.7SNA TRACE DATAHGOM11::YEKUANGMon May 05 1997 02:45846
    this is tace data of the three type program.my machine is Alpha 2100A
    5/250,the OS is Digital UNIX v3.2g.
    
    
    1.the original SNA CPI-C PROGRAM
    
    
    
    
                    .
                    .
                    .
            while(1)
            {
                    if((pid=fork())==0)
                                    break;
                            else
                                    continue;
            }
    
             cminit(conv_id,sym_dest_named,&retcode);
                                    .
                                    .
                                    .
    
    
    it's snalog.dat is:
    
    Trace record(s) for component 'LU6.2 Client' follow:^M
    15:58:39.53  @(#)Digital SNA APPC/LU6.2 Programming Interface for
    Digital UNIX,
    V3.0 27-September-1995 13:46 (snagwy)^M
    15:58:39.53  snalu62_allocate called with parameters^M
                     tp_id                   = 0x00000000^M
                     status_vec              = 0x11fffeaf8^M
                     local_lu_name           = 0x0003f454 =
    'VTAM1.I0301031'^M
                     partner_lu_name         = 0x0003f46c =
    'VTAM1.PSALCICS'^M
                     mode_name               = 0x0003f444 = 'CMMMOD'^M
                     tpn                     = 0x11fffea40^M
                         translate = 0^M
                         tpn.length = 4^M
                         tpn.pointer = 0x0003f4e0 = 'SIOP'^M
                     type                    = 4^M
                     return_control          = 5^M
                     conversation_group_id   = 0^M
                     sync_level              = 9^M
                     security                = 0x11fffead8^M
                         type = 54^M
                        user_id = 0x3ffffff1c60 = ''^M
                         password = 0x3ffffff1c68 = ''^M
                         profile = 0x3ffffff1c70 = ''^M
                     pip                     = 0x00000000^M
                     wait_object             = 0x00000000^M
                     luwid                   = 0x00000000^M
                     conversation_correlator = 0x00000000^M
                     server_info             = 0x11fffeaa0^M
                         transport = 4^M
                         nodename = 0x00041f68 'ICBC_SRV'^M
                         identifier = 0x00041fb8 'LU62_SRV'^M
    15:58:39.54  ALLOCATED memory^M
                 Size = 632, Address = 0x0003dc08^M
                 Calls to cmn_alloc = 1, Calls to cmn_free = 0^M
                 632 bytes currently allocated, 632 peak bytes allocated^M
    15:58:39.54  Allocated VCB = 0x0003dc08^M
    15:58:39.54  ALLOCATED memory^M
                 Size = 134, Address = 0x0003bf08^M
                 Calls to cmn_alloc = 2, Calls to cmn_free = 0^M
                 766 bytes currently allocated, 766 peak bytes allocated^M
    15:58:39.54  ALLOCATED memory^M
                Size = 528, Address = 0x0003d808^M
                 Calls to cmn_alloc = 3, Calls to cmn_free = 0^M
                 1294 bytes currently allocated, 1294 peak bytes
    allocated^M
    15:58:39.54  Allocated CONV_BLK = 0x0003d808^M
    15:58:39.54  ALLOCATED memory^M
                 Size = 184, Address = 0x0003be08^M
                 Calls to cmn_alloc = 4, Calls to cmn_free = 0^M
                 1478 bytes currently allocated, 1478 peak bytes
    allocated^M
    15:58:39.54  Allocated CONN_BLK = 0x0003be08^M
    15:58:39.54  ALLOCATED memory^M
                 Size = 9, Address = 0x00047e88^M
                 Calls to cmn_alloc = 5, Calls to cmn_free = 0^M
                 1487 bytes currently allocated, 1487 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    15:58:39.54  GCI_OPEN called with parameters^M
                   Address to receive Connect ID = 0x0003be18^M
                   Transport                     = 2^M
                   Read Buf Size                 = 1024^M
                   User Header Size              = 0^M
                   Callback Routine              = 0x00000000^M
                   Event Callback Routine        = 0x00000000^M
                   Event Callback Parameter      = 0x00000000^M
                 Transport is 'TCP/IP' on Alpha AXP OSF/1^M
                 TCP-GCB allocated, address = 0x0003bb08, size = 144^M
                 Session gcb:^M
                   state     = 0^M
                   conn id   = 0x0003bb68^M
                   readfd    = 0^M
                   writefd   = 0^M
                   read size = 1024^M
                   msg len   = 0^M
                   next      = 0x00000000^M
    15:58:39.54  GCI_OPEN returning parameters^M
                 Return Parameters:^M
                   Transport                     = 2^M
                   Connect ID assigned           = 0x0003bb68^M
    15:58:39.54  GCI_OPEN exiting with status^M
    status = 0x02038009^M
    15:58:39.54  GCI_SEND_CONNECT called with parameters^M
                   Connect ID         = 0x0003bb68^M
                   Call_mode          = 1^M
                  Destination_nri    = 0x11fffe308^M
                   Callback Parameter = 0x00000000^M
                 Contents of Destination NRI^M
                   Transport:        TCP^M
                   Node Name:        'ICBC_SRV'^M
                   Port Number:      0^M
                   Port Name:        'LU62_SRV_CLI'^M
                   Stack Name:       ''^M
                 Service 'LU62_SRV_CLI' is port number 6001^M
    15:58:39.56  GCI_SEND_CONNECT exiting with status^M
    status = 0x0203817A^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    15:58:39.56  DEALLOCATED memory^M
                 Size = 9, Address = 0x00047e88^M
                 Calls to cmn_alloc = 5, Calls to cmn_free = 1^M
                 1478 bytes currently allocated, 1487 peak bytes
    allocated^M
    15:58:39.56  Deallocated CONN_BLK = 0x0003be08^M
    15:58:39.56  DEALLOCATED memory^M
                 Size = 184, Address = 0x0003be08^M
    
    
    when it is runing it show these messages:
    
            "can't grow stack,"
    
     and then the program exit.
    
    when we trace
    the sentence "cminit",the system show this message:
    
            "signal segment fault"
    
    the program stop here.
    
    2.for test the CPI-C's cminit sentence we change the program to this:
    
    
    			.
    			.
    			.
    		while(1)
    		{
    		 	.
    			.	
                        cminit(conv_id,sym_dest_named,&retcode);
    			cmallc(conv_id,&retcode );
    			.
    			.
    		}
    
    
	this program can work correctly,it's snalog.dat is:
    
    
    16:01:36.65  SNA Log file opened with trace mask: 0x7FFFFFFF^M
    File name:   snalog.dat^M
    ^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:36.65  @(#)Digital SNA APPC/LU6.2 Programming Interface for
    Digital UNIX,
    V3.0 27-September-1995 13:46 (snagwy)^M
    16:01:36.65  snalu62_allocate called with parameters^M
                     tp_id                   = 0x00000000^M
                     status_vec              = 0x11ffeb08^M
                     local_lu_name           = 0x1400c04c =
    'VTAM1.I0301031'^M
                     partner_lu_name         = 0x1400c064 =
    'VTAM1.PSALCICS'^M
                     mode_name               = 0x1400c03c = 'CMMMOD'^M
                     tpn                     = 0x11ffea50^M
                         translate = 0^M
                         tpn.length = 4^M
                         tpn.pointer = 0x1400c0d8 = 'SIOP'^M
                     type                    = 4^M
                     return_control          = 5^M
                     conversation_group_id   = 0^M
                     sync_level              = 9^M
                     security                = 0x11ffeae8^M
                         type = 54^M
                       user_id = 0x64003c60 = ''^M
                         password = 0x64003c68 = ''^M
                         profile = 0x64003c70 = ''^M
                     pip                     = 0x00000000^M
                     wait_object             = 0x00000000^M
                     luwid                   = 0x00000000^M
                     conversation_correlator = 0x00000000^M
                     server_info             = 0x11ffeab0^M
                         transport = 4^M
                         nodename = 0x14007da0 'ICBC'^M
                         identifier = 0x14007de0 'LU62_SRV'^M
    16:01:36.66  ALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 1, Calls to cmn_free = 0^M
                 632 bytes currently allocated, 632 peak bytes allocated^M
    16:01:36.66  Allocated VCB = 0x14006400^M
    16:01:36.66  ALLOCATED memory^M
                 Size = 134, Address = 0x14006680^M
                 Calls to cmn_alloc = 2, Calls to cmn_free = 0^M
                 766 bytes currently allocated, 766 peak bytes allocated^M
    16:01:36.66  ALLOCATED memory^M
                Size = 528, Address = 0x14006900^M
                 Calls to cmn_alloc = 3, Calls to cmn_free = 0^M
                 1294 bytes currently allocated, 1294 peak bytes
    allocated^M
    16:01:36.66  Allocated CONV_BLK = 0x14006900^M
    16:01:36.66  ALLOCATED memory^M
                 Size = 184, Address = 0x1400af80^M
                 Calls to cmn_alloc = 4, Calls to cmn_free = 0^M
                 1478 bytes currently allocated, 1478 peak bytes
    allocated^M
    16:01:36.66  Allocated CONN_BLK = 0x1400af80^M
    16:01:36.66  ALLOCATED memory^M
                 Size = 5, Address = 0x14007e80^M
                 Calls to cmn_alloc = 5, Calls to cmn_free = 0^M
                 1483 bytes currently allocated, 1483 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:36.66  GCI_OPEN called with parameters^M
                   Address to receive Connect ID = 0x1400af90^M
                   Transport                     = 2^M
                   Read Buf Size                 = 1024^M
                   User Header Size              = 0^M
                   Callback Routine              = 0x00000000^M
                  Event Callback Routine        = 0x00000000^M
                   Event Callback Parameter      = 0x00000000^M
                 Transport is 'TCP/IP' on Alpha AXP OSF/1^M
                 TCP-GCB allocated, address = 0x14006860, size = 144^M
                 Session gcb:^M
                   state     = 0^M
                   conn id   = 0x140068c0^M
                   readfd    = 0^M
                   writefd   = 0^M
                   read size = 1024^M
                   msg len   = 0^M
                   next      = 0x00000000^M
    16:01:36.66  GCI_OPEN returning parameters^M
                 Return Parameters:^M
                   Transport                     = 2^M
                   Connect ID assigned           = 0x140068c0^M
    16:01:36.66  GCI_OPEN exiting with status^M
    status = 0x02038009^M
    16:01:36.66  GCI_SEND_CONNECT called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 1^M
                   Destination_nri    = 0x11ffe318^M
                   Callback Parameter = 0x00000000^M
                 Contents of Destination NRI^M
                   Transport:        TCP^M
                   Node Name:        'ICBC'^M
                   Port Number:      0^M
                   Port Name:        'LU62_SRV_CLI'^M
                   Stack Name:       ''^M
                 Service 'LU62_SRV_CLI' is port number 6001^M
                 TCP/IP Address:^M
                   Family    = 2^M
                   Port      = 6001^M
                   Address   = 1.0.0.61 (ICBC)^M
    16:01:36.70  Connection Established^M
                 Session gcb:^M
                   state     = 1^M
                   conn id   = 0x140068c0^M
                   readfd    = 13^M
                   writefd   = 13^M
                   read size = 1024^M
                   msg len   = 0^M
                   next      = 0x00000000^M
    16:01:36.70  GCI_SEND_CONNECT returning parameters^M
    16:01:36.70  GCI_SEND_CONNECT exiting with status^M
    status = 0x0203ED81^M
    16:01:36.70  GCI_GET_IO_PORT called with parameters^M
                   Ident      = 0x140068c0^M
                   Ident Type = 0^M
    16:01:36.70  GCI_GET_IO_PORT returning parameters^M
                 Return Parameters:^M
                   I/O Port = 0x0xd^M
    16:01:36.70  GCI_GET_IO_PORT exiting with status^M
    status = 0x02038009^M
    16:01:36.70  GCI_SEND_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 1^M
                   Callback Parameter = 0x00000000^M
                 Send Data:^M
      0100 00                                           : ...^M
                 htons(snd_data->len) = 768^M
    16:01:36.70  GCI_SEND_DATA exiting with status^M
    status = 0x02038009^M
    16:01:36.74  GCI_RECEIVE_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 2^M
                   Timeout            = 0^M
                   Callback Parameter = 0x00000000^M
                 ntohs(msg_len) = 3^M
                 TCP-RCVHDR allocated, address = 0x14007f20, size = 19^M
    16:01:36.94  Data received, address = 0x14007f30, size = 3^M
                 Contents of received message:^M
      0100 00                                           : ...^M
    16:01:36.94  GCI_RECEIVE_DATA exiting with status^M
    status = 0x02038009^M
    16:01:36.94  GCI_FREE_RECEIVE_BUFFER called with parameters^M
                   Connect ID     = 0x140068c0^M
                   Buffer_DSC     = 0x1400aff0^M
                 TCP-RCVHDR deallocated, address = 0x14007f20, size = 19^M
    16:01:36.94  GCI_FREE_RECEIVE_BUFFER exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:36.94  >>> CONN_BLK = 0x1400af80 <<<^M
                 >>> Client/Server Protocol version = V1.0-0 <<<^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:36.94  GCI_SEND_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 1^M
                   Callback Parameter = 0x00000000^M
                 Send Data:^M
      1B00 0000 0300 0000 0000 0000 8600 0000 8600 0000 :
    ....................^M
      0100 0000 0000 0000 0000 0000 0200 0000 0E00 0000 :
    ....................^M
      E5E3 C1D4 F14B C9F0 F3F0 F1F0 F3F1 0200 0000 0E00 :
    .....K..............^M
      0000 E5E3 C1D4 F14B D7E2 C1D3 C3C9 C3E2 0600 0000 :
    .......K............^M
      C3D4 D4D4 D6C4 0400 0000 E2C9 D6D7 0400 0000 0500 :
    ....................^M
      0000 0900 0000 3600 0000 0000 0000 0000 0000 0000 :
    ......6.............^M
      0000 0000 0000 0000 0000 0000 0000                : ..............^M
                 htons(snd_data->len) = -31232^M
    16:01:36.94  GCI_SEND_DATA exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:36.94  Successfully created thread to receive data for CONN_BLK =
    0x1400af
    80.^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:37.16  GCI_RECEIVE_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 2^M
                   Timeout            = 0^M
                   Callback Parameter = 0x00000000^M
                 ntohs(msg_len) = 196^M
                 TCP-RCVHDR allocated, address = 0x1400c200, size = 212^M
    16:01:37.33  Data received, address = 0x1400c210, size = 196^M
                 Contents of received message:^M
      0600 0000 0300 0000 0000 0000 C400 0000 C400 0000 :
    ....................^M
      0100 0000 0100 0000 F982 1302 D156 6033 8E00 0000 :
    .............V`3....^M
      0800 0000 4930 3330 3130 3331 0E00 0000 E5E3 C1D4 :
    ....I0301031........^M
      F14B C9F0 F3F0 F1F0 F3F1 0800 0000 5053 414C 4349 :
    .K............PSALCI^M
      4353 0E00 0000 E5E3 C1D4 F14B D7E2 C1D3 C3C9 C3E2 :
    CS.........K........^M
      0600 0000 C3D4 D4D4 D6C4 0200 0000 0200 0000 0800 :
    ....................^M
      0000 001F 6033 1400 0000 1700 0000 0EE5 E3C1 D4F1 :
    ....`3..............^M
      4BC9 F0F3 F0F1 F0F3 F1B2 D2F8 22F7 B700 0117 0000 :
    K...........".......^M
      000E E5E3 C1D4 F14B C9F0 F3F0 F1F0 F3F1 B2D1 F822 :
    .......K..........."^M
      F7B7 0001 0800 0000 D156 6033 8C00 0000           :
    .........V`3....^M
    16:01:37.34  GCI_RECEIVE_DATA exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:37.34  ALLOCATED memory^M
                 Size = 196, Address = 0x1400c300^M
                 Calls to cmn_alloc = 6, Calls to cmn_free = 0^M
                 1679 bytes currently allocated, 1679 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:37.34  GCI_FREE_RECEIVE_BUFFER called with parameters^M
                   Connect ID     = 0x140068c0^M
                   Buffer_DSC     = 0x1400aff0^M
                 TCP-RCVHDR deallocated, address = 0x1400c200, size = 212^M
    16:01:37.34  GCI_FREE_RECEIVE_BUFFER exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:37.34  DEALLOCATED memory^M
                 Size = 196, Address = 0x1400c300^M
                 Calls to cmn_alloc = 6, Calls to cmn_free = 1^M
                 1483 bytes currently allocated, 1679 peak bytes
    allocated^M
    16:01:37.34  DEALLOCATED memory^M
                 Size = 134, Address = 0x14006680^M
                 Calls to cmn_alloc = 6, Calls to cmn_free = 2^M
                 1349 bytes currently allocated, 1679 peak bytes
    allocated^M
    16:01:37.34  Deallocating VCB = 0x14006400^M
    16:01:37.34  DEALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 6, Calls to cmn_free = 3^M
                 717 bytes currently allocated, 1679 peak bytes allocated^M
    16:01:37.34  snalu62_allocate exiting with status^M
                 %SNALU62-S-OK, normal successful completion^M
    16:01:37.34  snalu62_send_data called with parameters^M
                     resource          = 0x14006900^M
                         (Server = LU62_SRV, rcb_id =
    0x336056D1:0x0000008E^M
                     status_vec        = 0x11ffeb18^M
                     data              = 0x11fff0b8^M
                     length            = 71^M
                     map_name          = 0x00000000^M
                     user_control_data = 0^M
                     ps_control_data   = 0^M
                     encrypt           = 0^M
                     rts_recv          = 0x11ffeae0^M
                     exp_data_recv     = 0x11ffeac0^M
                     wait_object       = 0x00000000^M
    16:01:37.34  ALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 7, Calls to cmn_free = 3^M
                 1349 bytes currently allocated, 1679 peak bytes
    allocated^M
    16:01:37.34  Allocated VCB = 0x14006400^M
    16:01:37.34  ALLOCATED memory^M
                 Size = 110, Address = 0x1400c300^M
                 Calls to cmn_alloc = 8, Calls to cmn_free = 3^M
                 1459 bytes currently allocated, 1679 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:37.34  GCI_SEND_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 1^M
                  Callback Parameter = 0x00000000^M
                 Send Data:^M
      2700 0000 0300 0000 0100 0000 6E00 0000 6E00 0000 :
    '...........n...n...^M
      0100 0000 D156 6033 8E00 0000 4700 0000 20F0 0012 : .....V`3....G...
    ...^M
      0211 0060 3004 0000 2010 0116 0000 0017 0000 0225 : ...`0...
    ..........%^M
      0019 1900 0000 9704 2200 8108 3432 3030 3030 3031 :
    ........"...42000001^M
      3031 2020 0630 3031 3230 3253 409E EEAD B78A FC8A : 01 
    .001202S@.......^M
      531F DE03 3001 7B00 0000                          : S...0.{...^M
                 htons(snd_data->len) = 28160^M
    16:01:37.34  GCI_SEND_DATA exiting with status^M
    status = 0x02038009^M
    16:01:37.54  GCI_RECEIVE_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 2^M
                   Timeout            = 0^M
                   Callback Parameter = 0x00000000^M
                 ntohs(msg_len) = 46^M
                 TCP-RCVHDR allocated, address = 0x14006680, size = 62^M
    16:01:37.73  Data received, address = 0x14006690, size = 46^M
                 Contents of received message:^M
      2700 0000 0300 0000 0100 0000 2E00 0000 2E00 0000 :
    '...................^M
    0100 0000 0100 0000 F982 1302 0200 0000 0000 0000 :
    ....................^M
      0000 0000 0000                                    : ......^M
    16:01:37.73  GCI_RECEIVE_DATA exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:37.73  ALLOCATED memory^M
                 Size = 46, Address = 0x14007f80^M
                 Calls to cmn_alloc = 9, Calls to cmn_free = 3^M
                 1505 bytes currently allocated, 1679 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:37.73  GCI_FREE_RECEIVE_BUFFER called with parameters^M
                   Connect ID     = 0x140068c0^M
                   Buffer_DSC     = 0x1400aff0^M
                 TCP-RCVHDR deallocated, address = 0x14006680, size = 62^M
    16:01:37.73  GCI_FREE_RECEIVE_BUFFER exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:37.73  DEALLOCATED memory^M
                 Size = 46, Address = 0x14007f80^M
                 Calls to cmn_alloc = 9, Calls to cmn_free = 4^M
                 1459 bytes currently allocated, 1679 peak bytes
    allocated^M
    16:01:37.73  DEALLOCATED memory^M
                 Size = 110, Address = 0x1400c300^M
                 Calls to cmn_alloc = 9, Calls to cmn_free = 5^M
                 1349 bytes currently allocated, 1679 peak bytes
    allocated^M
    16:01:37.73  Deallocating VCB = 0x14006400^M
    16:01:37.73  DEALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 9, Calls to cmn_free = 6^M
                 717 bytes currently allocated, 1679 peak bytes allocated^M
    16:01:37.74  snalu62_send_data exiting with status^M
                 %SNALU62-S-OK, normal successful completion^M
    16:01:37.76  _snalu62_receive_and_wait called with parameters^M
                     resource          = 0x14006900^M
                         (Server = LU62_SRV, rcb_id =
    0x336056D1:0x0000008E^M
                     status_vec        = 0x11ffeb18^M
                     fill              = 35^M
                     length            = 0x11ffead8 -> 1024^M
                     rts_recv          = 0x11ffeab0^M
                    exp_data_recv     = 0x11ffead0^M
                     data              = 0x11fff0b8^M
                     data_recv         = 0x11ffeab8^M
                     status_recv       = 0x11ffeac0^M
                     map_name          = 0x00000000^M
                     wait_object       = 0x00000000^M
    16:01:37.76  snalu62_receive_and_wait called with parameters^M
                     resource          = 0x14006900^M
                         (Server = LU62_SRV, rcb_id =
    0x336056D1:0x0000008E^M
                     status_vec        = 0x11ffeb18^M
                     fill              = 35^M
                     length            = 0x11ffead8 -> 1024^M
                     rts_recv          = 0x11ffe8b0^M
                     exp_data_recv     = 0x11ffe8a0^M
                     data              = 0x11fff0b8^M
                     data_recv         = 0x11ffe890^M
                     status_recv       = 0x11ffe880^M
                     map_name          = 0x00000000^M
                     wait_object       = 0x00000000^M
    16:01:37.76  ALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 10, Calls to cmn_free = 6^M
                 1349 bytes currently allocated, 1679 peak bytes
    allocated^M
    16:01:37.76  Allocated VCB = 0x14006400^M
    16:01:37.76  ALLOCATED memory^M
                 Size = 40, Address = 0x1400b070^M
                 Calls to cmn_alloc = 11, Calls to cmn_free = 6^M
                 1389 bytes currently allocated, 1679 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:37.76  GCI_SEND_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 1^M
                   Callback Parameter = 0x00000000^M
                 Send Data:^M
      2300 0000 0300 0000 0200 0000 2800 0000 2800 0000 :
    #...........(...(...^M
      0100 0000 D156 6033 8E00 0000 2300 0000 0004 0000 :
    .....V`3....#.......^M
                 htons(snd_data->len) = 10240^M
    16:01:37.77  GCI_SEND_DATA exiting with status^M
    status = 0x02038009^M
    16:01:38.77  GCI_RECEIVE_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 2^M
                   Timeout            = 0^M
                   Callback Parameter = 0x00000000^M
                 ntohs(msg_len) = 318^M
                 TCP-RCVHDR allocated, address = 0x1400b100, size = 334^M
    16:01:38.93  Data received, address = 0x1400b110, size = 318^M
                 Contents of received message:^M
      2300 0000 0300 0000 0200 0000 3E01 0000 3E01 0000 :
    #...........>...>...^M
      0100 0000 0100 0000 F982 1302 0500 0000 0000 0401 :
    ....................^M
      0000 20F0 0012 0211 1028 1000 958E 4500 0100 1921 : ..
    ......(....E....!^M
      0000 0117 9972 0000 0000 0000 0000 9704 2000 0000 : .....r..........
    ...^M
      0000 1700 0011 0000 0000 0000 1080 0082 8000 3030 :
    ..................00^M
      3030 3030 3030 2020 2020 3030 3030 3031 0000 4456 : 000000   
    000001..DV^M
      4150 3030 3030 3030 2020 2020 2000 1630 3030 3030 : AP000000    
    ..00000^M
      3030 3030 3030 3530 3030 3000 0800 0000 0000 0000 :
    00000050000.........^M
      0042 5DD2 BE28 31BF 9B00 0000 0000 0000 0000 0000 :
    .B]..(1.............^M
      0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 :
    ....................^M
      0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 :
    ....................^M
      0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 :
    ....................^M
      0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 :
    ....................^M
      0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 :
    ....................^M
      0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 :
    ....................^M
      0000 2600 0000 2A00 0000 0000 0000 0000 0000      :
    ..&...*...........^M
    16:01:38.93  GCI_RECEIVE_DATA exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:38.93  ALLOCATED memory^M
                 Size = 318, Address = 0x1400b280^M
                 Calls to cmn_alloc = 12, Calls to cmn_free = 6^M
                 1707 bytes currently allocated, 1707 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:38.93  GCI_FREE_RECEIVE_BUFFER called with parameters^M
                   Connect ID     = 0x140068c0^M
                   Buffer_DSC     = 0x1400aff0^M
                 TCP-RCVHDR deallocated, address = 0x1400b100, size = 334^M
    16:01:38.93  GCI_FREE_RECEIVE_BUFFER exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:38.93  DEALLOCATED memory^M
                Size = 318, Address = 0x1400b280^M
                 Calls to cmn_alloc = 12, Calls to cmn_free = 7^M
                 1389 bytes currently allocated, 1707 peak bytes
    allocated^M
    16:01:38.93  DEALLOCATED memory^M
                 Size = 40, Address = 0x1400b070^M
                 Calls to cmn_alloc = 12, Calls to cmn_free = 8^M
                 1349 bytes currently allocated, 1707 peak bytes
    allocated^M
    16:01:38.93  Deallocating VCB = 0x14006400^M
    16:01:38.93  DEALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 12, Calls to cmn_free = 9^M
                 717 bytes currently allocated, 1707 peak bytes allocated^M
    16:01:38.93  snalu62_receive_and_wait exiting with status^M
                 %SNALU62-S-OK, normal successful completion^M
    16:01:38.93  snalu62_receive_immediate called with parameters^M
                     resource          = 0x14006900^M
                         (Server = LU62_SRV, rcb_id =
    0x336056D1:0x0000008E^M
                     status_vec        = 0x11ffe8e8^M
                     fill              = 35^M
                     length            = 0x11ffe878 -> 0^M
                     rts_recv          = 0x11ffe8a8^M
                     exp_data_recv     = 0x11ffe898^M
                     data              = 0x00000000^M
                     data_recv         = 0x11ffe888^M
                     status_recv       = 0x11ffe880^M
                     map_name          = 0x00000000^M
    16:01:38.93  ALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 13, Calls to cmn_free = 9^M
                 1349 bytes currently allocated, 1707 peak bytes
    allocated^M
    16:01:38.93  Allocated VCB = 0x14006400^M
    16:01:38.93  ALLOCATED memory^M
                 Size = 40, Address = 0x1400b070^M
                 Calls to cmn_alloc = 14, Calls to cmn_free = 9^M
                 1389 bytes currently allocated, 1707 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:38.93  GCI_SEND_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 1^M
                   Callback Parameter = 0x00000000^M
                 Send Data:^M
     2500 0000 0300 0000 0300 0000 2800 0000 2800 0000 :
    %...........(...(...^M
      0100 0000 D156 6033 8E00 0000 2300 0000 0000 0000 :
    .....V`3....#.......^M
                 htons(snd_data->len) = 10240^M
    16:01:38.94  GCI_SEND_DATA exiting with status^M
    status = 0x02038009^M
    16:01:39.14  GCI_RECEIVE_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 2^M
                   Timeout            = 0^M
                   Callback Parameter = 0x00000000^M
                 ntohs(msg_len) = 58^M
                 TCP-RCVHDR allocated, address = 0x1400b280, size = 74^M
    16:01:39.33  Data received, address = 0x1400b290, size = 58^M
                 Contents of received message:^M
      2500 0000 0300 0000 0300 0000 3A00 0000 3A00 0000 :
    %...........:...:...^M
      0100 0000 0100 0000 F982 1302 0200 0000 0000 0000 :
    ....................^M
      0000 2B00 0000 2B00 0000 0000 0000 0000 0000      :
    ..+...+...........^M
    16:01:39.33  GCI_RECEIVE_DATA exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:39.33  ALLOCATED memory^M
                 Size = 58, Address = 0x14006680^M
                 Calls to cmn_alloc = 15, Calls to cmn_free = 9^M
                 1447 bytes currently allocated, 1707 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:39.33  GCI_FREE_RECEIVE_BUFFER called with parameters^M
                   Connect ID     = 0x140068c0^M
                   Buffer_DSC     = 0x1400aff0^M
                 TCP-RCVHDR deallocated, address = 0x1400b280, size = 74^M
    16:01:39.33  GCI_FREE_RECEIVE_BUFFER exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:39.33  DEALLOCATED memory^M
                 Size = 58, Address = 0x14006680^M
                 Calls to cmn_alloc = 15, Calls to cmn_free = 10^M
                 1389 bytes currently allocated, 1707 peak bytes
    allocated^M
    16:01:39.33  DEALLOCATED memory^M
                 Size = 40, Address = 0x1400b070^M
                 Calls to cmn_alloc = 15, Calls to cmn_free = 11^M
                 1349 bytes currently allocated, 1707 peak bytes
    allocated^M
    16:01:39.33  Deallocating VCB = 0x14006400^M
    16:01:39.33  DEALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 15, Calls to cmn_free = 12^M
                 717 bytes currently allocated, 1707 peak bytes allocated^M
    16:01:39.33  snalu62_receive_immediate exiting with status^M
                 %SNALU62-S-OK, normal successful completion^M
    16:01:39.33  _snalu62_receive_and_wait exiting with status^M
                 %SNALU62-S-OK, normal successful completion^M
    16:01:39.35  snalu62_deallocate called with parameters^M
                     resource      = 0x14006900^M
                         (Server = LU62_SRV, rcb_id =
    0x336056D1:0x0000008E^M
                     status_vec    = 0x11ffeb18^M
                     type          = 28^M
                     log_data      = 0x00000000^M
                     exp_data_recv = 0x11ffead8^M
                     wait_object   = 0x00000000^M
    16:01:39.35  ALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 16, Calls to cmn_free = 12^M
                 1349 bytes currently allocated, 1707 peak bytes
    allocated^M
    16:01:39.35  Allocated VCB = 0x14006400^M
    16:01:39.35  ALLOCATED memory^M
                 Size = 41, Address = 0x14007f80^M
                 Calls to cmn_alloc = 17, Calls to cmn_free = 12^M
                 1390 bytes currently allocated, 1707 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:39.35  GCI_SEND_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 1^M
                   Callback Parameter = 0x00000000^M
                 Send Data:^M
      1E00 0000 0300 0000 0400 0000 2900 0000 2900 0000 :
    ............)...)...^M
      0100 0000 D156 6033 8E00 0000 1C00 0000 0000 0000 :
    .....V`3............^M
      00                                                : .^M
                 htons(snd_data->len) = 10496^M
    16:01:39.35  GCI_SEND_DATA exiting with status^M
    status = 0x02038009^M
    16:01:39.55  GCI_RECEIVE_DATA called with parameters^M
                   Connect ID         = 0x140068c0^M
                   Call_mode          = 2^M
                   Timeout            = 0^M
                   Callback Parameter = 0x00000000^M
                 ntohs(msg_len) = 45^M
                 TCP-RCVHDR allocated, address = 0x14006680, size = 61^M
    16:01:39.73  Data received, address = 0x14006690, size = 45^M
                 Contents of received message:^M
      1E00 0000 0300 0000 0400 0000 2D00 0000 2D00 0000 :
    ............-...-...^M
      0100 0000 0100 0000 F982 1302 0100 0000 0000 0000 :
    ....................^M
      0000 0000 00                                      : .....^M
    16:01:39.73  GCI_RECEIVE_DATA exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:39.73  ALLOCATED memory^M
                 Size = 45, Address = 0x14007fc0^M
                 Calls to cmn_alloc = 18, Calls to cmn_free = 12^M
                 1435 bytes currently allocated, 1707 peak bytes
    allocated^M
    ^M
    Trace record(s) for component 'General Communications Layer' follow:^M
    16:01:39.73  GCI_FREE_RECEIVE_BUFFER called with parameters^M
                   Connect ID     = 0x140068c0^M
                   Buffer_DSC     = 0x1400aff0^M
                 TCP-RCVHDR deallocated, address = 0x14006680, size = 61^M
    16:01:39.73  GCI_FREE_RECEIVE_BUFFER exiting with status^M
    status = 0x02038009^M
    ^M
    Trace record(s) for component 'LU6.2 Client' follow:^M
    16:01:39.73  DEALLOCATED memory^M
                 Size = 45, Address = 0x14007fc0^M
                 Calls to cmn_alloc = 18, Calls to cmn_free = 13^M
                 1390 bytes currently allocated, 1707 peak bytes
    allocated^M
    16:01:39.73  DEALLOCATED memory^M
                 Size = 41, Address = 0x14007f80^M
                 Calls to cmn_alloc = 18, Calls to cmn_free = 14^M
                 1349 bytes currently allocated, 1707 peak bytes
    allocated^M
    16:01:39.73  Deallocating CONV_BLK = 0x14006900^M
    16:01:39.73  DEALLOCATED memory^M
                 Size = 528, Address = 0x14006900^M
                 Calls to cmn_alloc = 18, Calls to cmn_free = 15^M
                 821 bytes currently allocated, 1707 peak bytes allocated^M
    16:01:39.73  Deallocating VCB = 0x14006400^M
    16:01:39.73  DEALLOCATED memory^M
                 Size = 632, Address = 0x14006400^M
                 Calls to cmn_alloc = 18, Calls to cmn_free = 16^M
                 189 bytes currently allocated, 1707 peak bytes allocated^M
    16:01:39.73  snalu62_deallocate exiting with status^M
                 %SNALU62-S-OK, normal successful completion^M
    
    
    we found the difference is the Allocate memory size,one is 1483 ,the
    other one is 1487.the other differenec is we use UNIX v3.2g,but in CMA
    node 1526 is UNIX v3.2c.
    
    
    
    
    			thanks and regards
    
    			ye kuang