setuname(1M)setuname(1M)NAMEsetuname - change machine information
SYNOPSIS
name] node]
DESCRIPTION
The command is used to modify the value for system name and/or the node
name by using the appropriate option(s).
The command attempts to change the parameter values in both the running
kernel and the system configuration to cross reboots. A temporary
change affects only the running kernel.
Options
The command supports the following options:
Changes the system name (for example, HP-UX) in the
field of the structure where name is the new sys‐
tem name and consists of alphanumeric characters
and the special characters dash, underbar, and
dollar sign.
Changes the name in the
field of the structure where node specifies the
new node name and consists of alphanumeric char‐
acters and the special characters dash, underbar,
and dollar sign.
Signifies a temporary change.
The change will not survive a reboot.
Either or both of the or options must be given when invoking
The size of the name and node is limited to characters. is defined in
Only users having appropriate privileges can use this command.
EXAMPLES
To permanently change the system name to and the node name to issue the
following command:
To temporarily change the system name to and the node name to issue the
following command:
WARNINGS
Setting a nodename of more than 8 bytes is possible only with the
appropriate configuration options enabled. It is strongly recommended
that all related documentation be completely understood before setting
a larger node name. A node name larger than 8 bytes can cause anoma‐
lous or incorrect behavior in applications which use the command or the
system function to access the name.
SEE ALSOuname(1), uname(2), nodehostnamesize(5).
setuname(1M)