Operating System - HP-UX
1822143 Members
3682 Online
109640 Solutions
New Discussion юеВ

Connect:Direct ... in unix

 
SOLVED
Go to solution
Manuales
Super Advisor

Connect:Direct ... in unix

Hi ....

Everybody of you have worked with connect direct?

I'd like to kwno why appears next message if i want connect with my user:

unix2:userone> ./direct

******************************************************
* *
* Connect:Direct UNIX *
* *
*----------------------------------------------------*
* Copyright (c) 1992, 2004 Sterling Commerce, Inc. *
* Version 3.6.00 *
***********************************************

Failed to read configuration file, exiting.

XCLC001I Return Code: 8 Feedback: 0
Missing CLI environment variable.


Connect:Direct CLI Terminated...

Why is happening this?

Thanks, Manuales.
13 REPLIES 13
Patrick Wallek
Honored Contributor
Solution

Re: Connect:Direct ... in unix

It looks to be pretty self explanatory. The key is:

Failed to read configuration file, exiting.

It is apparently trying to read some configuration file somewhere and failing. That file apparently sets some environment variables, including the CLI variable. Since that variable is not set, the process is terminating.

You need to figure out which file it can't read. Perhaps there is a file you don't have read access to as 'userone'.
Zinky
Honored Contributor

Re: Connect:Direct ... in unix

You're using NDM right?

Where are you running direct? You need to be in ~/ndm/cfg/servername.

That's how our NDM setup is.

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Manuales
Super Advisor

Re: Connect:Direct ... in unix

thanks !!!

that is the problem, i do not know what file is !!!!!

Manuales.
Patrick Wallek
Honored Contributor

Re: Connect:Direct ... in unix

What is the "direct" file that you are running? Is it a compiled executable or is it a script that calls other things?

If it is a script, which I think it may be, then you can look at it and see what it is doing and look for any files it may be trying to read.
Zinky
Honored Contributor

Re: Connect:Direct ... in unix

Manuales,

I think you need to be logged in as user "ndmuser" -- which has the proper environment/profiles for the NDM application.

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Manuales
Super Advisor

Re: Connect:Direct ... in unix

check ...

all files under /home/hp/cdunix/../.....
were with userid named usera

i am migrating the userid to other userid ..
the new userid is nemed userb

i renama all usera by userb below ./cdunix/
I update the user in userfile.cfg below
/home/hp/cdunix/ndm/cfg/node1


i do not know where lives CLI variable !!!
do i have restart the application starting up with new userid?

Thanks, Manuales.
Zinky
Honored Contributor

Re: Connect:Direct ... in unix

On the old account where NDM was/is working, copy the .profile or .login (depending on your shell) so the environment variables are established...

make sure you have the envar defined to wherever you have the ndmapi.cfg file located.

NDMAPICFG=/ndm/cdunix/ndm/cfg/cliapi/ndmapi.cfg


And yes you will need to restart..
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Manuales
Super Advisor

Re: Connect:Direct ... in unix


HELP PLEASE ...

sorry, how do i must stop and start the processes acording to Connect Direct?

I'm new with this software ..


Manuales ...
Bill Hassell
Honored Contributor

Re: Connect:Direct ... in unix

I think the fastest resource is from the manufacturer: Sterling Commerce. They have the manuals online and you can contact them to give the details on making their product work:

http://www.sterlingcommerce.com/Products/Customer/


Bill Hassell, sysadmin
Zinky
Honored Contributor

Re: Connect:Direct ... in unix


Here ya go:

cdpmgr -i /ndm/cdunix/ndm/cfg/srvname/initparm.cfg

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Manuales
Super Advisor

Re: Connect:Direct ... in unix

Hi all!!

I continue with the same problem, now, can you tell me why is happening follows?:

******************************************************
* *
* Connect:Direct UNIX *
* *
*------------------------------------ * Copyright (c) 1992, 2004 Sterling Commerce, Inc. *
* Version 3.6.00 *
*********************************************

Failed to obtain connection to Connect:Direct server, exiting.

XSEC008I Return Code: 8 Feedback: 0


XAPI005I Return Code: 8 Feedback: 0
ndm_auth failure.


What is missing?
any permission?
any directory?
any file?
Thanks, Manuales.
Manuales
Super Advisor

Re: Connect:Direct ... in unix

Hi !!1
I have found the solution !!!
always must have 600 permissions the files named: keys.server and keys.client
with this i can log CLI menu as follows:

./direct

******************************************************
* *
* Connect:Direct UNIX *
* *
*----------------------------------------------------*
* Copyright (c) 1992, 2004 Sterling Commerce, Inc. *
* Version 3.6.00 *
******************************************************

Enter a ';' at the end of a command to submit it. Type 'quit;' to exit CLI.

Direct> quit
;

Connect:Direct CLI Terminated...


Really I'm very happy !!!

Thanks, Manuales.
Manuales
Super Advisor

Re: Connect:Direct ... in unix

The solution was very stranger, was not it???

I do not why but that was the solution !!!

Manuales.