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

To change the system’s hostname on HP-UX, you can use the “sam” command-line utility. The “sam” utility is the System Administration Manager, which provides a text-based interface for managing various system configurations, including the hostname.

Here’s how you can change the hostname using the “sam” utility:

  1. Log in as the superuser (root)
  2. Open the “sam” utility:
sam
  1. Select the “System Administration” option from the main menu
  2. Select the “Networking and Communications” option
  3. Select the “Host Names” option
  4. Enter the new hostname in the “Host Name” field
  5. Save the changes and exit the “sam” utility

After you have completed these steps, the hostname of your HP-UX system will be changed. You may need to restart some services or reboot the system for the changes to take effect.

Alternatively, you can also change the hostname using the “hostname” command in the terminal:

hostname new_hostname

This change will be temporary and will be lost after a reboot. To make the change permanent, you will need to edit the “/etc/hosts” file and the “/etc/rc.config.d/netconf” file.

(Modafinil)

Leave a Comment