Operating System - HP-UX
1835862 Members
5216 Online
110085 Solutions
New Discussion

Re: Can't login HP-UX via X-window

 
ericfjchen
Regular Advisor

Can't login HP-UX via X-window

This is HP rp3440 (HP-Ux 11.11). After changing the server's ip, I can't loging it via X-window anymore. Before that, I can connect it via X-window. The new ip is in another subnet. In other words, the source IP to HP rp3440 has a fireware. The network team has opened all ports for it. However, I can't use X-window to connect it. How should I do?
19 REPLIES 19
Pedro Cirne
Esteemed Contributor

Re: Can't login HP-UX via X-window

Hi,

This is tipically a name resolution problem.

Are you using DNS or hosts?

Have you changed the IP adress in the hosts file and update the DNS?

Is name lookup and reverse name lookup consistent?

Check nslookup and nslookup are they consistent on the RP3440 and on the X-Window sever?

Enjoy :)

Pedro
Muthukumar_5
Honored Contributor

Re: Can't login HP-UX via X-window

Is it reachable from your machine first? ping . If you are not then you have to add routing for that new ip-address into your machine.

hth.
Easy to suggest when don't know about the problem!
ericfjchen
Regular Advisor

Re: Can't login HP-UX via X-window

>>>Are you using DNS or hosts?

Ans: I am using hosts only.
So, nslookup is ok.
ericfjchen
Regular Advisor

Re: Can't login HP-UX via X-window

>>>Is it reachable from your machine first?

Ans: Yes, it is ok with ping. I can telnet to HP rp3440 from X-window server.
Pedro Cirne
Esteemed Contributor

Re: Can't login HP-UX via X-window

Hi,

If you are using hosts, then check on /etc/hosts if the ip/name is correct, also check it on the server where you are trying to start X-Window.

Enjoy :)

Pedro
Muthukumar_5
Honored Contributor

Re: Can't login HP-UX via X-window

You are able to ping & telnet to that server from your machine. Are you able to do ping or telnet from that machine?

Is X-Server running on that machine? ps -ef | grep dt

hth.
Easy to suggest when don't know about the problem!
ericfjchen
Regular Advisor

Re: Can't login HP-UX via X-window

# ps -ef|grep dt
root 4056 1098 0 Aug 19 ? 0:00 /usr/dt/bin/rpc.ttdbserver
root 3705 1 0 Aug 19 ? 0:00 /sbin/sh /usr/dt/bin/dtrc
root 3734 3705 0 Aug 19 ? 0:00 /usr/dt/bin/dtlogin
-----------
ping is ok.
ericfjchen
Regular Advisor

Re: Can't login HP-UX via X-window

Which port does X-window use?
Rajesh SB
Esteemed Contributor

Re: Can't login HP-UX via X-window

Hi,

Make sure are you able to communicate with port 6000 using telnet. If telnet is going thru, the X11 server for each display listening. Otherwise contact your network team to open the blocked port.

Also verify the host resolution on new subnet.

Regards,
Rajesh
ericfjchen
Regular Advisor

Re: Can't login HP-UX via X-window

>>>Make sure are you able to communicate with port 6000 using telnet?

Another HP-UX server which I can connect it via X-window is not listening port 6000.
--------
netstat -an|grep 6000
no rows returned.
--------
Therefore I can't telnet HP rp3440 via port 6000.

Is it right?
Pedro Cirne
Esteemed Contributor

Re: Can't login HP-UX via X-window

Hi,

Where are you trying to open the X session?

Are you trying to open it on your PC? Are you using Reflection, Exceed or something similar?

Enjoy :)

Pedro

ericfjchen
Regular Advisor

Re: Can't login HP-UX via X-window

>>>Where are you trying to open the X session?

Ans: My PC

>>>Are you trying to open it on your PC? Are you using Reflection, Exceed or something similar?

Ans: Yes. I can use it to connect any HP-UX via X-window.
Pedro Cirne
Esteemed Contributor

Re: Can't login HP-UX via X-window

Hi ericfjchen,

I'm almost sure you have an IP/name resolution problem.

Check the and post here the output of the following from you PC:

1ºGo to comand line
2ºnslookup
3ºnslookup , it must return the rp3440_name
4ºnslookup
5ºnslookup , it must return you PC_name

Then do de same from you rp3440 and also post it here.

Check also in your Exceed configuration if your rp3440_name is on the Host Acess Control List:

Tools-->Configuration-->Security

Let us know!

Pedro
ericfjchen
Regular Advisor

Re: Can't login HP-UX via X-window

Hi Pedro,

I am using the IP to connect the HP rp3440 directly. HP rp3440 has been set IP/name resolution by /etc/hosts only. It seems not a DNS problem. Am I right?

Thanks

Eric
Raj D.
Honored Contributor

Re: Can't login HP-UX via X-window

Hi ericfjchen ,

Which X-Window software are you using to connect the server . Have u configured the x-window client about the new IP and ports as per new IP changes done in the server.

cheers,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
ericfjchen
Regular Advisor

Re: Can't login HP-UX via X-window

When I try to connect to HP rp3440, it shows "XDMCP connection failed. try again?".
However, I can use the below to show xclock

# DISPLAY=10.xx.xx.54:0
# export DISPLAY
# which xclock
/usr/bin/X11/xclock
# xclock&
[1] 13302

Pls see the attached file.
Adisuria Wangsadinata_1
Honored Contributor

Re: Can't login HP-UX via X-window

Hi,

Please check the url below about 'CDE Startup Troubleshooting' (docID : XMKKBAN00000234) :

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072805125

Hope this information can help you.

Cheers,
AW

now working, next not working ... that's unix
Ermin Borovac
Honored Contributor

Re: Can't login HP-UX via X-window

XDMCP connections use UDP port 177.

First verify that dtlogin on your HP-UX is bound to UDP port 177.

#netstat -an | grep 177
udp 0 0 *.177 *.*
#lsof -i udp:177
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dtlogin 3471 root 5u IPv4 0x4bfd9100 0t0 UDP *:177 (Idle)

Then make sure the following communication is opened through the firewall

o from PC to HP-UX server UDP port 177
o from HP-UX server to PC TCP port 6000

TCP port 6000 is used by X server which is running on your PC. Port 6000 is for connection to DISPLAY=:0.0. If DISPLAY is set to :1.0 then port 6001 is used.

Please note the distinction:

o X server is running on your PC
o X clients (xclock, xterm) are run on HP-UX server and they connect to X server on the PC
John E.Ophious
Regular Advisor

Re: Can't login HP-UX via X-window

Ericfjchen,

DNS looks to be your problem. Does nslookup give the correct IP address? X will not work properly if you are running DNS and change the IP address without changing it in the DNS tables.

John E. O.