1hostconfig(1M)          System Administration Commands          hostconfig(1M)
2
3
4

NAME

6       hostconfig - configure a system's host parameters
7

SYNOPSIS

9       /usr/sbin/hostconfig -p protocol [-d] [ -h] [-n] [-v]
10            [-i interface] [-f hostname]
11
12

DESCRIPTION

14       The   hostconfig program uses a network protocol to acquire a machine's
15       host parameters and set these parameters on the system.
16
17
18       The program selects which protocol to use based on the argument to  the
19       required   -p  flag. Different protocols may set different host parame‐
20       ters. Currently, only one protocol (bootparams) is defined.
21

OPTIONS

23       The following options are supported:
24
25       -d              Enable debug output.
26
27
28       -f hostname     Run the protocol as if this machine  were  named  host‐
29                       name.
30
31
32       -h              Echo  the received hostname to stdout, rather than set‐
33                       ting hostname using the system name directly.
34
35
36       -i interface    Use only the named network interface to run the  proto‐
37                       col.
38
39
40       -n              Run  the  network protocol, but do not set the acquired
41                       parameters into the  system.
42
43
44       -p protocol     Run hostconfig using protocol. Currently, only one pro‐
45                       tocol   (bootparams)   is  available.  This  option  is
46                       required.
47
48                       Specifying the -p bootparams  option  uses  the  whoami
49                       call of the RPC bootparams protocol. This sets the sys‐
50                       tem's  hostname,  domainname,  and  default  IP  router
51                       parameters.
52
53
54       -v              Enable verbose output.
55
56

EXAMPLES

58       Example 1 Configuring Host Parameters with Verbose Output
59
60
61       The  following command configures a machine's host parameters using the
62       whoami call of the RPC bootparams protocol with a verbose output.
63
64
65         example# hostconfig -p bootparams -v
66
67
68
69       Example 2 Displaying Host Parameters
70
71
72       The following command displays the parameters that would be  set  using
73       the whoami call of the RPC bootparams protocol.
74
75
76         example# hostconfig -p bootparams -n -v
77
78
79
80       Example 3 Configuring Host Parameters Less the System Name
81
82
83       The  following command configures a machine's host parameters, less the
84       system name, using  the whoami call of the RPC bootparams protocol.
85
86
87         example# hostconfig='hostconfig -p bootparams -h'
88
89
90

ATTRIBUTES

92       See attributes(5) for descriptions of the following attributes:
93
94
95
96
97       ┌─────────────────────────────┬─────────────────────────────┐
98       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
99       ├─────────────────────────────┼─────────────────────────────┤
100       │Availability                 │SUNWcsu                      │
101       └─────────────────────────────┴─────────────────────────────┘
102

SEE ALSO

104       hostname(1), domainname(1M), route(1M), attributes(5)
105
106
107
108SunOS 5.11                        6 Nov 2000                    hostconfig(1M)
Impressum