How to open 6000 port for XDMCP?

Hi,

While login to Xmanager its showing " XDMCP connection failed. Try again? "
the error attached .

Is the /usr/dt/bin/dtlogin process running on your server?
dtlogin is the process that handles your XDM connections.

Hi vbe,

Yes it's working the output given below -:

# ps -ef | grep dtlogin
    root  3448 26431  0 15:53:49 pts/0     0:00 grep dtlogin

the output shows your gep only

Look what it should look like:

# a HPUX 11.00 box
ra1:/home/vbe $ ps -ef|grep [d]tlogin
    root  1534  1515  0  Aug 25  ?         0:07 /usr/dt/bin/dtlogin
# a HPUX 11.11...
ant:/home/vbe $ ps -ef|grep [d]tlogin
    root  2369  2319  0  Sep  6  ?         0:01 /usr/dt/bin/dtlogin
    root  6243  2369  0  May 29  ?         0:00 /usr/dt/bin/dtlogin

now look using your command:

ant:/home/vbe $ ps -ef|grep dtlogin  
    root  2369  2319  0  Sep  6  ?         0:01 /usr/dt/bin/dtlogin
    root  6243  2369  0  May 29  ?         0:00 /usr/dt/bin/dtlogin
     vbe 12142 12047  1 16:31:01 pts/2     0:00 grep dtlogin

In red, the grep command...

OK,
Then please tell me where is the problem occurred.

Let's start by the obvious... Arrghhh you did not mention your OS version and platform...
So till 11.11 this is what you do to find your init level: who -r dtlogin starts at 3...

Hi vbe,

The OS details is as follows -:

 HP-UX   B.11.31 U ia64

And after using who -r its showing -:

# who -r dtlogin
dtlogin doesn't exist or isn't readable
Usage:  who [-rbtpludAasHTqRmW] [am i] [utmp_like_file]

It was just who -r
to type:

ant:/home/vbe $ who -r
   .       run-level 3  Sep  6 11:08    3    0    S

Then look at the end of /etc/rc.log :

...skipping...

Start CDE login server
Output from "/sbin/rc3.d/S990dtlogin.rc start":
----------------------------

**************************************************
HP-UX run-level transition completed
Tue Sep  6 11:10:45 METDST 2011
**************************************************
rc.log: END

in rc.log its not showing this as per you said -:

...skipping... Start CDE login server Output from "/sbin/rc3.d/S990dtlogin.rc start": ---------------------------- ************************************************** HP-UX run-level transition completed Tue Sep 6 11:10:45 METDST 2011 ************************************************** rc.log: END

edit /etc/rc.config.d/desktop and
add "DESKTOP=CDE" or modify the line to if exist
then do a

/sbin/init.d/dtlogin.rc start

OR

dtconfig -e can be used to set this up for you. Man dtconfig for details.

in desktop its showing " CDE Desktop enabled Thu May 24 17:50:34 IST 2012
DESKTOP=CDE
DTPRTSVR= "

so is it require to take backup of the file before editing ??
where shall i add the code in desktop ?? front of "DESKTOP=CDE " ??

No
execute dtconfig -e

Then look again at /etc/rc.config.d/desktop

It should have added new lines like:

# CDE Desktop enabled Mon Feb  7 20:18:43 MET 2011
DESKTOP=CDE
DTPRTSVR=

If so, execute now (as root...)

/sbin/init.d/dtlogin.rc start

Well?

After doing this its also not showing anything regarding dtlogin in /etc/rc.log.

rc.log is for when the system comes up, at boot time...

So if you have executed

/sbin/init.d/dtlogin.rc start

Check now to see if its running:

ps -ef|grep [d]tlogin
1 Like

YES,

now its showing -:

# ps -ef|grep [d]tlogin
root 29358 29167 0 18:15:46 pts/0 0:00 /usr/dt/bin/dtlogin

---------- Post updated at 03:23 PM ---------- Previous update was at 02:29 PM ----------

Thanks vbe :slight_smile:

its worked.