≡ Menu

How to change system’s hostname on HP-UX Unix system

I‘m a new HP-UX system user. How do I set the system hostname using shell prompt on a HP-UX?

You can use SAM (System Administration Manager) to set the system hostname or the following command to change or set the hostname on a HP-UX unix system. You can also edit the file /etc/rc.config.d/netconf. This file contains the hostname, IP address, default route and more.

set_parms command syntax

Type the following command as root user:
# set_parms hostname
You will be prompted to supply the system name, then press [Enter] key. The system must be rebooted for any change to take full effect:
# reboot
To see the hostname, run:
$ hostname
For more info read the man page set_parms(1M):
$ man set_parms

Share this tutorial on:

{ 2 comments… add one }
  • c4m4 January 4, 2016, 12:21 am

    why I need to reboot for change my hostname? please can you give more information about that

    • Vivek Gite January 4, 2016, 9:27 am

      A reboot is required for verification and make sure all changes are applied. The official HP-UX docs also recommend a reboot.

Leave a Comment


   Tagged with: ,