Operating System - HP-UX
1821191 Members
3245 Online
109631 Solutions
New Discussion юеВ

Re: XDMCP suddenly stop working

 
Emir Faisal
Frequent Advisor

XDMCP suddenly stop working

Few weeks ago, i manage to query xdmcp to my machines (2 K570/B.10.20 U) using cygwin/X from windows w2k3.

$ xwin -screen 0 800 600 -once hpux1

But after a few days, suddenly i can't query to one of my machine. When I invoke the above command, local X server start and hangs without any login prompt from cde.

how to fix this problem ?
Everything is possible, if you don't know what you're talking about.
7 REPLIES 7
Elmar P. Kolkman
Honored Contributor

Re: XDMCP suddenly stop working

Check on the HP-UX system if the daemon that should respond is still running. This process is /usr/dt/bin/dtlogin. It is started from /usr/dt/bin/dtrc which is started during booting.

So, check out on your server:
ps -ef | grep dt

If dtlogin and dtrc are not listed, do:
/sbin/init.d/dtlogin.rc start

If successfull, doing the ps -ef again will show dtlogin in the list. If not, you or a colleague has probably changed something in /etc/rc.config.d resulting in dtlogin not being started, for instance changing the DESKTOP var can cause that.
Every problem has at least one solution. Only some solutions are harder to find.
V.Tamilvanan
Honored Contributor

Re: XDMCP suddenly stop working

Hi,
I believe it is the name resolution issue. Check whether your DNS server is working OK and you are able to resolve the hostname.
Emir Faisal
Frequent Advisor

Re: XDMCP suddenly stop working

ps -ef shows that dtlogin were running.

$ ps -ef | grep dtlo
U15360 14236 7748 1 14:23:37 ttysd 0:00 grep dtlo
root 9052 9042 0 14:16:57 ttysd 0:00 /usr/dt/bin/dtlogin
$

but, still I stop and restart it, to make sure

# /sbin/init.d/dtlogin.rc stop
# /sbin/init.d/dtlogin.rc start

then i try to connect again, and nothing. The symptom remain same.

additional info:
1. when i look into /etc/rc.log, i got lines:

Start CDE login server
Output from "/sbin/rc3.d/S990dtlogin.rc start":
----------------------------
/usr/pvproxy/upsd : -2 : UPS communication error

the last line is repeatedly printed.

2. I can connect (xdmcp query) nomally using reflection.
Everything is possible, if you don't know what you're talking about.
Steven E. Protter
Exalted Contributor

Re: XDMCP suddenly stop working

If you have recently run Bastille or otherwise secured your system, things may be a little too tight.

Most of the current X clients like hummingbird default to the Berkley protocols and will simply stop working if things are screwed down too tight.

If however the problem persists with an attached graphics card then security settings are not likely to be the cause.

You should be able to find enough evidence to work with in the /var/adm/syslog/syslog.log file.

Perhaps tail -f /var/adm/syslog/syslog.log in a telnet window and try cde connect and see what gets logged.

Also

inetd -c
to restart
inetd -l
to kick enhanced logging in syslog

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Emir Faisal
Frequent Advisor

Re: XDMCP suddenly stop working

Thanks for the response mr. protter.
we are not running any apps to secure the machine recently.

I restart the inetd using "-c" and check whether it is ran with "-l" flag.

then i start xdmcp query again while "tail -f /var/adm/syslog/syslog.log" and i found no interesting activity.

like I said before, I can query nomally using raflection, but not cygwin/x.
Everything is possible, if you don't know what you're talking about.
Emir Faisal
Frequent Advisor

Re: XDMCP suddenly stop working

mr. tamil,
i do some nslookup and it come with proper answer. I also get the reply when i ping the machine. Thanks.
Everything is possible, if you don't know what you're talking about.
PVR
Valued Contributor

Re: XDMCP suddenly stop working

Pl do the following

# inetd -c

# /sbin/init.d/dtlogin.rc stop

#dtlogin.rc start

Don't give up. Try till success...