summaryrefslogtreecommitdiff
path: root/usr/src/man/man8/inetadm.8
blob: 5587d0ece9fc8a1166b18d90e1d3f9a6f9973c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
'\" te
.\" Copyright (c) 2004, 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]
.TH INETADM 8 "April 9, 2016"
.SH NAME
inetadm \- observe or configure inetd-controlled services
.SH SYNOPSIS
.LP
.nf
\fBinetadm\fR
.fi

.LP
.nf
\fBinetadm\fR \fB-?\fR
.fi

.LP
.nf
\fBinetadm\fR \fB-p\fR
.fi

.LP
.nf
\fBinetadm\fR \fB-l\fR {\fIFMRI\fR | \fIpattern\fR}
.fi

.LP
.nf
\fBinetadm\fR \fB-e\fR {\fIFMRI\fR | \fIpattern\fR}
.fi

.LP
.nf
\fBinetadm\fR \fB-d\fR {\fIFMRI\fR | \fIpattern\fR}
.fi

.LP
.nf
\fBinetadm\fR \fB-m\fR {\fIFMRI\fR | \fIpattern\fR}... {\fIname\fR=\fIvalue\fR}...
.fi

.LP
.nf
\fBinetadm\fR \fB-M\fR {\fIname\fR=\fIvalue\fR}...
.fi

.SH DESCRIPTION
.LP
The \fBinetadm\fR utility provides the following capabilities for
\fBinetd\fR-managed SMF services:
.RS +4
.TP
.ie t \(bu
.el o
Provides a list of all such services installed.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Lists the services' properties and values.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Allows enabling and disabling of services.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Allows modification of the services'property values, as well as the default
values provided by \fBinetd\fR.
.RE
.sp
.LP
See \fBsmf\fR(7) for a description of an SMF service.
.sp
.LP
With no arguments, \fBinetadm\fR lists all services under \fBinetd\fR(8)
control, including such attributes as their current run state and whether or
not they are enabled.
.SH OPTIONS
.LP
For options taking one or more FMRI operands (see \fBsmf\fR(7) for a
description of an FMRI), if the operand specifies a service (instead of a
service instance), and that service has only a single instance, \fBinetadm\fR
operates on that instance.
.sp
.LP
If a service name is supplied and it contains more than one instance or a
pattern is supplied and it matches more than one instance, a warning
message is displayed and that operand is ignored.
.sp
.LP
For those options taking \fIname\fR=\fIvalue\fR parameters, a description of
each of the possible names and the allowed values is found in the
\fBinetd\fR(8) man page.
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-?\fR\fR
.ad
.sp .6
.RS 4n
Display a usage message.
.RE

.sp
.ne 2
.na
\fB\fB-p\fR\fR
.ad
.sp .6
.RS 4n
Lists all default \fBinet\fR service property values provided by \fBinetd\fR in
the form of \fIname\fR=\fIvalue\fR pairs. If the value is of boolean type, it
is listed as TRUE or FALSE.
.RE

.sp
.ne 2
.na
\fB\fB-l\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
.ad
.sp .6
.RS 4n
List all properties for the specified service instances as
\fIname\fR=\fIvalue\fR pairs. In addition, if the property value is inherited
from the default value provided by \fBinetd\fR, the \fIname\fR=\fIvalue\fR pair
is identified by the token (default). Property inheritance occurs when
properties do not have a specified service instance default.
.RE

.sp
.ne 2
.na
\fB\fB-e\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
.ad
.sp .6
.RS 4n
Enable the specified service instances.
.RE

.sp
.ne 2
.na
\fB\fB-d\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
.ad
.sp .6
.RS 4n
Disable the specified service instances.
.RE

.sp
.ne 2
.na
\fB\fB-m\fR {\fIFMRI\fR | \fIpattern\fR}...{\fIname\fR=\fIvalue\fR}...\fR
.ad
.sp .6
.RS 4n
Change the values of the specified properties of the identified service
instances. Properties are specified as whitespace-separated
\fIname\fR=\fIvalue\fR pairs. To remove an instance-specific value and accept
the default value for a property, simply specify the property without a value,
for example, \fBname=\fR .
.RE

.sp
.ne 2
.na
\fB\fB-M\fR {\fIname\fR=\fIvalue\fR}...\fR
.ad
.sp .6
.RS 4n
Change the values of the specified \fBinetd\fR default properties. Properties
are specified as whitespace-separated \fIname\fR=\fIvalue\fR pairs.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fRDisplaying Properties for a Service
.sp
.LP
The following command displays the properties for the \fBspray\fR service.

.sp
.in +2
.nf
# inetadm -l network/rpc/spray:default
SCOPE    NAME=VALUE
         name="sprayd"
         endpoint_type="tli"
         proto="datagram_v"
         isrpc=TRUE
         rpc_low_version=1
         rpc_high_version=1
         wait=TRUE
         exec="/usr/lib/netsvc/spray/rpc.sprayd"
         user="root"
default  bind_addr=""
default  bind_fail_max=-1
default  bind_fail_interval=-1
default  max_con_rate=-1
default  max_copies=-1
default  con_rate_offline=-1
default  failrate_cnt=40
default  failrate_interval=60
default  inherit_env=TRUE
default  tcp_trace=FALSE
default  tcp_wrappers=FALSE
default  connection_backlog=10
.fi
.in -2

.LP
\fBExample 2 \fRDisplaying Default Properties
.sp
.LP
The following command displays default properties.

.sp
.in +2
.nf
# inetadm -p
NAME=VALUE
bind_addr=""
bind_fail_max=-1
bind_fail_interval=-1
max_con_rate=-1
max_copies=-1
con_rate_offline=-1
failrate_cnt=40
failrate_interval=60
inherit_env=TRUE
tcp_trace=FALSE
tcp_wrappers=FALSE
default  connection_backlog=10
.fi
.in -2

.LP
\fBExample 3 \fRChanging Property Values for a Service
.sp
.LP
The following command changes \fBrpc_high_version\fR to \fB3\fR and
\fBtcp_trace\fR to \fBTRUE\fR for the \fBspray\fR service.

.sp
.in +2
.nf
# inetadm -m network/rpc/spray:default \e
         rpc_high_version=3 tcp_trace=TRUE
# inetadm -l network/rpc/spray:default
SCOPE    NAME=VALUE
         name="sprayd"
         endpoint_type="tli"
         proto="datagram_v"
         isrpc=TRUE
         rpc_low_version=1
         rpc_high_version=3
         wait=TRUE
         exec="/usr/lib/netsvc/spray/rpc.sprayd"
         user="root"
default  bind_addr=""
default  bind_fail_max=-1
default  bind_fail_interval=-1
default  max_con_rate=-1
default  max_copies=-1
default  con_rate_offline=-1
default  failrate_cnt=40
default  failrate_interval=60
default  inherit_env=TRUE
         tcp_trace=TRUE
default  tcp_wrappers=FALSE
default  connection_backlog=10
.fi
.in -2

.SH EXIT STATUS
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 5n
Operation completed successfully.
.RE

.sp
.ne 2
.na
\fB\fB1\fR\fR
.ad
.RS 5n
A fatal error occurred. An accompanying error message will provide further
information.
.RE

.sp
.ne 2
.na
\fB\fB2\fR\fR
.ad
.RS 5n
Invalid arguments were supplied, such as an ambiguous service FMRI or pattern.
.RE

.SH ATTRIBUTES
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Evolving
.TE

.SH SEE ALSO
.LP
.BR attributes (7),
.BR smf (7),
.BR inetd (8),
.BR svccfg (8)