Configuration Files: netmap.cfg
Userfile.cfg
Receiving server:
Sending Server:
Steps for Processing Connect: Direct Request
* Receive request to add a user mapping.
At RECEIVING SERVER
1. Login to the Receiving server
a.)Go to the connect direct configuration directory: /local/bin/cdunix/ndm/cfg/
2. Check NETMAP.CFG file – to map remote system.
a.) Is the sending server information added to the netmap.cfg?
b.) If yes then do nothing and exit
else
(Get all the info from the previous server and change the following values:
b.1.) Node name - it is the same at the server name, usually at the top of the values.
b.2.) comm.info – This is the ip address of the sending server.}
3. At USERFILE.CFG file – to map remote user to the local user
user2@
:local.id=user2:\ #Local user
:descrip=:
Add the local users with the values
user2:\
:admin.auth=n:\
:cmd.chgproc=y:\
:cmd.delproc=y:\
:cmd.flsproc=y:\
:cmd.selproc=y:\
:cmd.submit=y:\
:cmd.selstats=y:\
:cmd.stopndm=n:\
:cmd.trace=n:\
:pstmt.copy=y:\
:pstmt.runjob=y:\
:pstmt.runtask=y:\
:pstmt.submit=y:\
:snode.ovrd=y:\
:pstmt.copy.ulimit=y:\
:pstmt.upload=y:\
:pstmt.upload_dir=:\
:pstmt.download=y:\
:pstmt.download_dir=:\
:pstmt.run_dir=:\
:pstmt.submit_dir=:\
:name=:\
:phone=:\
:descrip=:
B) SENDING SERVER
. Login to the sending server
. su – user2#local user.
. Set the connect direct environment: # . /local/etc/cdunix/cdunixenv
. Create the process file: test.cd
E.g.
user2@
test process snode=
step01: copy from (file=/local/users/user2/whatevername.tst pnode) to (file=SNAZU1.GOOF snode disp=new)
· Run the command to start the Direct application:
user2@
********************************************
* CONNECT:Direct for UNIX *
*-----------------------------------------------------------*
* Copyright (c) 1983, 1997 Sterling Commerce, Inc. *
* Version 3.1.00 GA *
********************************************
Enter a ';' at the end of a command to submit it. Type 'quit;' to exit CLI.
Submit the process
Direct> submit file=/local/users/user2/test.cd;
Process Submitted, Process Number = 1036
Check the status of the process
Direct> sel stat pnum=1036;
===============================================================================
SELECT STATISTICS
===============================================================================
P RECID LOG TIME PNAME PNUMBER STEPNAME CCOD FDBK MSGID
E RECID LOG TIME MESSAGE TEXT
-------------------------------------------------------------------------------
P PSTR 06/13/2005 05:05:40 test 1036 0 XSMG200I
P CTRC 06/13/2005 05:05:40 test 1036 step01 0 SCPA000I
P PRED 06/13/2005 05:05:40 test 1036 0 XSMG252I
===============================================================================
Select Statistics Completed Successfully.
Note:-if the ccod is any other number than 0{zero} then the transfer is not successful.
E.g.
Direct> sel stat pnum=1035;
===============================================================================
SELECT STATISTICS
===============================================================================
P RECID LOG TIME PNAME PNUMBER STEPNAME CCOD FDBK MSGID
E RECID LOG TIME MESSAGE TEXT
-------------------------------------------------------------------------------
P PSTR 06/13/2005 05:01:35 test 1035 0 XSMG200I
P CTRC 06/13/2005 05:01:35 test 1035 step01 8 XCPR014I
P PRED 06/13/2005 05:01:35 test 1035 8 XCPR014I
===============================================================================
Select Statistics Completed Successfully.
Direct>quit;
Direct> sel stat pnum=1035 detail=yes; <----For a Detailed output on the status :
# /local/bin/cdunix/work/hostname/ <-----Log files location
No comments:
Post a Comment