Blog

03/06/2019

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

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

20/08/2019

Start your Bitcoin Exchange with our Software

Start your Bitcoin Exchange with our Software Setup your white label bitcoin exchange right away. Or create your own cryptocurrency using...
14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....