Issue with Connect direct ndmcli


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Issue with Connect direct ndmcli
# 1  
Old 08-22-2014
Issue with Connect direct ndmcli

Hi..

We are using connect direct to transfer the files between servers. The CD scripts run on HP UX.

Below is the code using ndmcli.

Code:
ndmcli -x << EOJ   
submit  maxdelay=0 proc1  process  snode=$3                                                                          
        step1  copy     from (file=$2                                                                                
####sysopts=":datatype=binary:"                                                                                      
####pnode)                                                                                                           
               to (file=$4  snode                                                                                    
####sysopts="datatype(binary)"                                                                                       
####disp=rpl)                                                                                                        
        pend;                                                                                                        
EOJ

The script sometimes hangs in the very frst line(ndmcli) for unknown reason when trying to connect to connect direct. Below log shows the same:

Code:
	******************************************************
	*                                                    *
	*             CONNECT:Direct for UNIX                *
	*                                                    *
	*----------------------------------------------------*
	*  Copyright (c) 1992, 2002  Sterling Commerce, Inc. *
	*                   Version 3.5.00                   *
	*                Fix level: 29JAN2004                *
	******************************************************

Direct> ---------------------< Date: 08/12 09:55:13 EDT >----------------------
---------------------< Date: 08/12 10:55:15 EDT >----------------------
---------------------< Date: 08/12 11:55:15 EDT >----------------------
---------------------< Date: 08/12 12:55:12 EDT >----------------------
---------------------< Date: 08/12 13:55:13 EDT >----------------------
---------------------< Date: 08/12 14:55:13 EDT >----------------------
---------------------< Date: 08/12 15:55:12 EDT >----------------------
---------------------< Date: 08/12 16:55:11 EDT >----------------------
---------------------< Date: 08/12 17:55:14 EDT >----------------------
---------------------< Date: 08/12 18:55:13 EDT >----------------------
---------------------< Date: 08/12 19:55:13 EDT >----------------------
---------------------< Date: 08/12 20:56:13 EDT >----------------------
---------------------< Date: 08/12 21:55:22 EDT >----------------------
---------------------< Date: 08/12 22:55:21 EDT >----------------------

If it successfully gets connected, the log will look like:

Code:
	******************************************************
	*                                                    *
	*             CONNECT:Direct for UNIX                *
	*                                                    *
	*----------------------------------------------------*
	*  Copyright (c) 1992, 2002  Sterling Commerce, Inc. *
	*                   Version 3.5.00                   *
	*                Fix level: 29JAN2004                *
	******************************************************

Direct> ---------------------< Date: 08/11 14:55:11 EDT >----------------------
Enter a ';' at the end of a command to submit it. Type 'quit;' to exit CLI.

submit  maxdelay=0 proc1  process  snode=svr1
         step1  copy     from (file=XYZ.pdf 
 				sysopts=":datatype=binary:"
 				pnode)       
                to (file=XYZ.pdf  snode 
 				sysopts="datatype(binary)"
 				disp=rpl)
  
         pend;

Could someone let me know if there is a way to capture an exception when the script hangs other than checking if cdpmgr is running in the background?

Your help on this would be much appreciated.

Thanks..!
# 2  
Old 08-22-2014
Quote:
Originally Posted by anijan
Hi..

We are using connect direct to transfer the files between servers. The CD scripts run on HP UX.
I haven't used CONNECT: Direct - which is a file transfer software with support for a wide range of platforms, not only UNIX but also VMS, IBM mainframes, ... - for a long time, but i remember there was a tool ndmclitest one could use to test the connection. You probably find more details in the documentation of the CONNECT: Direct product, which is pretty exhaustive, AFAIR.

I hope this helps.

bakunin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Connect direct - SFTP - List of servers that I can connect

Greetings Experts, I am working for a bank client and have a question on connect-direct and SFTP. We are using Linux RedHat servers. We use connect-direct to transfer (NDM) files from one server to another server. At times, we manually transfer the files using SFTP from one server to another... (2 Replies)
Discussion started by: chill3chee
2 Replies

2. AIX

Lenovo v3700 v2 direct connect to AIX

i have directly connect AIX pwer 7 to lenovo v3700 v2 without San through fiber card. but i cannot see the WWPN to add AIX as host in management console. (10 Replies)
Discussion started by: khalid khanAIB
10 Replies

3. Red Hat

Linux to Connect direct transfer

I am transfering a file using connect direct from Linux to Mainframe. Its a point to point transfer but its failing with below error: **** Error from CONNECT:Direct API - ndmapi_recvresp_c error Can we do PTP transfers? code tags for code, please. (1 Reply)
Discussion started by: gerryperillo
1 Replies

4. Shell Programming and Scripting

Connect direct script for unix

I want to connect direct a xml file and a excel file each separately from unix system to another unix system.The size of the xml file and excel file may vary each time. Below is the possible connect direct script to transfer the files.Please check if it is correct? Also does DCB parameter... (4 Replies)
Discussion started by: bk_12345
4 Replies

5. Shell Programming and Scripting

Connect Direct for copying files from Mainframes to UNIX

Hai Friends, Please help me in providing unix shell script for pulling data from mainframe dataset to unix using connect direct (NDM). Thanks in advance (1 Reply)
Discussion started by: karthikm
1 Replies

6. Shell Programming and Scripting

Connect:Direct

Hello all, I have a requirement to transfer files to mainframe usinf NDM connect:direct. So can anybody provide me a sample shell script on how to call a connect;direct script by providing filename as a parameter please? Thanks, Ajay (0 Replies)
Discussion started by: ajaykumar4534
0 Replies

7. Red Hat

IBM Connect:Direct Error

Hi to all, I've installed IBM Connect:Direct 4.1.00 on Red Hat Enterprise Linux Server release 5.5, but when I try to execute the "direct cli", I obtain the following error: $ ./direct *********************************************************** * ... (2 Replies)
Discussion started by: f.vietti
2 Replies

8. Solaris

Connect direct configuration on Solaris

Hi, I am configuring Connect direct on Solaries 6.0, but whenever i am giving the below command cdpmgr -i /export/app/cdunix/ndm/cfg/khello/initparm.cfg i am getting the message Component <cdpmgr ndmcmgr ndmsmgr ndmumgr cdstatm> permissions are not set. Please follow instructions in the... (3 Replies)
Discussion started by: sidd
3 Replies

9. Shell Programming and Scripting

Problem using connect direct

Hi, I have a script in which i'm using ndm connect direct to fetch data from the client server..syntax i'm using is ./con_using_connectdirect /load/nctrl nctrl $xhost where con_using_connectdirect is the script which establishes connection load/nctrl is the path from where data... (4 Replies)
Discussion started by: Sheema
4 Replies

10. UNIX for Advanced & Expert Users

How to direct-connect two UNIX boxes

Hello, I have a V880 and a 420 running Solaris 9. Each box has more than one NIC card. I'd like to know how to configure the network on the two boxes so that I can directly connect the NIC cards. Meaning, I don't want a switch or router between the two. I just want to run a CAT5 cable to each... (3 Replies)
Discussion started by: agcodba
3 Replies
Login or Register to Ask a Question