xref: /titanic_52/usr/src/man/man1m/setuname.1m (revision 1a5e258f5471356ca102c7176637cdce45bac147)
te
Copyright 1989 AT&T Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
SETUNAME 1M "Jul 9, 2003"
NAME
setuname - change machine information
SYNOPSIS

setuname [-t] [-n node] [-s name]
DESCRIPTION

The setuname utility changes the parameter value for the system name and node name. Each parameter can be changed using setuname and the appropriate option.

Either or both the -s and -n options must be given when invoking setuname.

The system architecture may place requirements on the size of the system and network node name. The command will issue a fatal warning message and an error message if the name entered is incompatible with the system requirements.

OPTIONS

The following options are supported: -n node

Changes the node name. node specifies the new network node name and can consist of alphanumeric characters and the special characters dash, underbar, and dollar sign.

-s name

Changes the system name. name specifies new system name and can consist of alphanumeric characters and the special characters dash, underbar, and dollar sign.

-t

Temporary change. No attempt will be made to create a permanent change.

SEE ALSO

attributes(5)

NOTES

setuname attempts to change the parameter values in two places: the running kernel and, as necessary per implementation, to cross system reboots. A temporary change changes only the running kernel.