1833883 Members
1927 Online
110063 Solutions
New Discussion

CDE and host IP change

 
SOLVED
Go to solution
Rick Garland
Honored Contributor

CDE and host IP change

For HP-UX 11.00 and 10.20, need to change IPs of systems. In doing so, the CDE will not function any more. Change the IP back to what it was and CDE works again.
What change needs to be done to CDE for this situation?

Many thanks
Rick
4 REPLIES 4
Berlene Herren
Honored Contributor
Solution

Re: CDE and host IP change

Troubleshooting steps:

Troubleshooting
 From the CDE login select Options -> Session -> Failsafe Session and login as root.
 Run /usr/contrib/bin/X11/dr_dt. The end of the output from this script says: X ERRORs and X WARNINGs. These errors and warnings should be resolved before CDE will run properly.
 Check the error log /var/dt/Xerrors Check the error log $HOME/.dt/errorlog
 Compare the startlog $HOME/.dt/startlog against that of a working user or that of a user on a working system. Contents should be similar to the following:
--- /usr/dt/bin/Xsession starting...
--- Xsession started by dtlogin
--- sourcing /root/.dtprofile...
--- sourcing /usr/dt/config/Xsession.d/0010.dtpaths...
--- sourcing /usr/dt/config/Xsession.d/0020.dtims...
--- sourcing /usr/dt/config/Xsession.d/0030.dttmpdir...
--- sourcing /usr/dt/config/Xsession.d/0040.xmbind...
--- sourcing /usr/dt/config/Xsession.d/0060.srcsysenv...
--- starting /usr/dt/bin/dthello &
--- starting /usr/dt/bin/dtsearchpath -ksh
--- starting /usr/dt/bin/dtappgather &
--- execing /usr/dt/bin/dtsession...
If any additional scripts are sourced, check their contents to be sure that the commands they contain can be successfully executed at the command line.
 The output from "nslookup " and "nslookup " should be the same. This checks for
1. duplicate IP addresses or hostnames
2. problems with name resolution.
If nslookup fails then CDE will fail to start. If the first line returned from nslookup is: "Name Server" then you are using DNS. If the name cannot be resolved, move "/etc/resolv.conf" to another name, i.e. /etc/resolv.conf.orig and rerun nslookup. If nslookup now succeeds then try logging into CDE again.
 Check permissions and ownership of the following files:
-r--r--r-- 1 bin bin 616 Jul 1 16:03 /etc/hosts
-r--r--r-- 1 root sys 1010 Jun 25 18:22 /var/adm/inetd.sec
 If this is happening for a subset of the users, try to identify what might be unique about this user. Check their .profile or .login and any other start-up scripts that they exec (i.e. .kshrc or .cshrc). Check for DISPLAY and ensure that DISPLAY is not being set.
 Ensure that the lastest CDE, Xserver and Motif patches are installed.
 /usr/sbin/ping You should get back 0% packet loss. If you get something different then check your network configuration.
 Allow CDE to rebuild it's user configuration:
mv $HOME/.dt $HOME/.dt.orig
mv $HOME/.dtprofile $HOME/.dtprofile.orig
exit (to return to CDE) - try logging in as root.

Berlene

http://www.mindspring.com/~bkherren/dobes/index.htm
Jason Luginbuhl
Frequent Advisor

Re: CDE and host IP change

Rick,

The problem is likely and Xwindow DISPLAY problem. The DISPLAY variable is normally set to be equal to hostname:0.0. However your system must properly be able to resolve that hostname to the new IP address for the CDE display to work.

Compare the following:
# hostname
# nslookup NEW_IP_ADDRESS

If these don't agree then you need to fix your name resolution so that they do. You will need to update /etc/hosts and/or DNS/NIS so that the hostname and IP agree.
"Unfortunately you can't out-program stupidity"
David Rodman
Frequent Advisor

Re: CDE and host IP change

The previous two posts have a lot of good stuff to try. But IF you are sure of the network with the new IPs AND you don't care about your DCE desktop config, you can also try wiping out all the dt files in your home dir and re-login. You will get the default desktop.
Stefan Schulz
Honored Contributor

Re: CDE and host IP change

What we do to change a IP Adress is this:

boot in single user mode, and vi /etc/rc.config.d/netconf.
Delete the Hostname and the IP Adress, save and reboot.

The workstation will ask you for hostname and IP Adress during the boot process. Never had any problem with CDE or anything else.

CU

Stefan
No Mouse found. System halted. Press Mousebutton to continue.