2 .\" Copyright (c) 1999, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH HOSTCONFIG 8 "Nov 6, 2000"
8 hostconfig \- configure a system's host parameters
12 \fB/usr/sbin/hostconfig\fR \fB-p\fR \fIprotocol\fR [\fB-d\fR] [ \fB-h\fR] [\fB-n\fR] [\fB-v\fR]
13 [\fB-i\fR \fIinterface\fR] [\fB-f\fR \fIhostname\fR]
19 The \fBhostconfig\fR program uses a network protocol to acquire a machine's
20 \fBhost parameters\fR and set these parameters on the system.
23 The program selects which protocol to use based on the argument to the required
24 \fB-p\fR flag. Different protocols may set different host parameters.
25 Currently, only one protocol (\fBbootparams\fR) is defined.
29 The following options are supported:
36 Enable \fBdebug\fR output.
42 \fB\fB-f\fR\fI hostname\fR\fR
45 Run the protocol as if this machine were named \fBhostname\fR.
54 Echo the received \fBhostname\fR to \fBstdout\fR, rather than setting
55 \fBhostname\fR using the system name directly.
61 \fB\fB-i\fR\fI interface\fR\fR
64 Use only the named network interface to run the protocol.
73 Run the network protocol, but do not set the acquired parameters into the
80 \fB\fB-p\fR \fIprotocol\fR\fR
83 Run \fBhostconfig\fR using \fIprotocol\fR. Currently, only one protocol
84 (\fBbootparams\fR) is available. This option is required.
86 Specifying the \fB-p\fR \fBbootparams\fR option uses the \fBwhoami\fR call of
87 the RPC \fBbootparams\fR protocol. This sets the system's \fBhostname\fR,
88 \fBdomainname\fR, and default IP router parameters.
97 Enable verbose output.
102 \fBExample 1 \fRConfiguring Host Parameters with Verbose Output
105 The following command configures a machine's host parameters using the
106 \fBwhoami\fR call of the RPC \fBbootparams\fR protocol with a verbose output.
111 example# hostconfig \fB-p\fR bootparams \fB-v\fR
117 \fBExample 2 \fRDisplaying Host Parameters
120 The following command displays the parameters that would be set using the
121 \fBwhoami\fR call of the RPC \fBbootparams\fR protocol.
126 example# hostconfig \fB-p\fR bootparams \fB-n\fR \fB-v\fR
132 \fBExample 3 \fRConfiguring Host Parameters Less the System Name
135 The following command configures a machine's host parameters, less the system
136 name, using the \fBwhoami\fR call of the RPC \fBbootparams\fR protocol.
141 example# hostconfig='hostconfig \fB-p\fR bootparams \fB-h\fR'
149 \fBhostname\fR(1), \fBdomainname\fR(8), \fBroute\fR(8), \fBattributes\fR(5)