HP-UX unix desktop is very sensitive to networking changes such as hostname and IP address. I learned this hard way. First, you need to kill HP-UX desktop (CDE) with the following command. Open a terminal and login as root user.
# /sbin/init.d/dtlogin.rc stop
Next, open the /etc/rc.config.d/netconf file and make changes to HOSTNAME and IP address. Save and close the file.
# vi /etc/rc.config.d/netconf
HOSTNAME=myhpux INTERFACE_NAME=lan0 IP_ADDRESS=220.127.116.11 SUBNET_MASK=255.255.255.0 BROADCAST_ADDRESS="" DHCP_ENABLE="0"
Finally, you need to update the /etc/hosts file with correct IP and hostname:
# vi /etc/hosts
Reboot the system:
# shutdown -ry 0