Operating System - HP-UX
1834486 Members
3940 Online
110067 Solutions
New Discussion

dtlogin in an MC/SG package

 
SOLVED
Go to solution
Jean Mesquida_1
Frequent Advisor

dtlogin in an MC/SG package

Hi all,

HP-UX 11.00+MC/SG 11.12

I am trying to configure a service for handling dtlogin so that users on Tektronix X Terminal get the list of regular hosts (not part of the cluster) and the IP address/name of my package on their screen.

First, is it possible, when the X Terminal are using XDMCP Broadcast ?

When using XDMCP Direct or Indirect (the X terminal don't seem to be able to use them, but I also have an X emulation on my PC), I am able to connect to the host holding the package but this X connection is bound to the IP address of the host and not the one of the package... Is there a way to be bound to my package ???

Any help greatly appreciated !

Thanks.
JM
2 REPLIES 2
Kenneth Platz
Esteemed Contributor
Solution

Re: dtlogin in an MC/SG package

Jean,

CDE (and other X Windows applications) is not ServiceGuard-aware, per se. When the dtlogin process responds to a broadcast request, it simply sends a reply back to the requestor with its hostname (as defined by the 'hostname' command), and the IP address is generally extracted from the headers of the response packet.

You should be able to do an XDMCP direct request to the your package IP address; however, again the CDE login banner will advertise itself as the system's hostname, not the package IP address.

It *might* be possible to configure XDMCP Indirect to show your package IP address in the display list, yet I have not personally tried this. You would need to do the following (on both of your MC/SG servers)

1) Edit /etc/dt/config/Xservers. Create this if it does not exist:

* # Allow access from all hosts
* CHOOSER hosta hostb pkghost

This will configure the CDE chooser to allow XDMCP queries on hosta, hostb, and pkghost.

2) Stop and restart CDE with the commands "/sbin/init.d/dtlogin.rc stop" and "/sbin/init.d/dtlogin.rc start".

3) You should then be able to configure your Xterminal to perform an XDMCP Indirect query on your package address.

You should be aware that (if this works) while your Xterminal will connect to the package IP address, if the package ever gets switched over to your other server you will need to logout of CDE and log back in to switch your session to the new real IP address, and if the package fails over due to a crash, you will lose your CDE connection and will get dumped back out to the login screen.

I hope this helps.
I think, therefore I am... I think!
Jean Mesquida_1
Frequent Advisor

Re: dtlogin in an MC/SG package

Thanks for your help Kenneth !

I have been able to modify the XDMCP config of my Tektronix X terminal so that it only shows the IP address of one package on its chooser (cf. /tekxp/boot/config/xp.cnf and XDMCP entries :
xdmcp_connect INDIRECT
xdmcp_server "10.9.7.230"
).
I also modified the /etc/dt/config/Xaccess reflecting your advises... and it works !

The problems of resetting CDE will surely appear as the package switches from one node to the other : the end-users have to be warned.

Cheers.
JM