2 .\" Copyright (c) 2004, 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 INETADM 1M "April 9, 2016"
8 inetadm \- observe or configure inetd-controlled services
17 \fBinetadm\fR \fB-?\fR
22 \fBinetadm\fR \fB-p\fR
27 \fBinetadm\fR \fB-l\fR {\fIFMRI\fR | \fIpattern\fR}
32 \fBinetadm\fR \fB-e\fR {\fIFMRI\fR | \fIpattern\fR}
37 \fBinetadm\fR \fB-d\fR {\fIFMRI\fR | \fIpattern\fR}
42 \fBinetadm\fR \fB-m\fR {\fIFMRI\fR | \fIpattern\fR}... {\fIname\fR=\fIvalue\fR}...
47 \fBinetadm\fR \fB-M\fR {\fIname\fR=\fIvalue\fR}...
52 The \fBinetadm\fR utility provides the following capabilities for
53 \fBinetd\fR-managed SMF services:
58 Provides a list of all such services installed.
64 Lists the services' properties and values.
70 Allows enabling and disabling of services.
76 Allows modification of the services'property values, as well as the default
77 values provided by \fBinetd\fR.
81 See \fBsmf\fR(5) for a description of an SMF service.
84 With no arguments, \fBinetadm\fR lists all services under \fBinetd\fR(1M)
85 control, including such attributes as their current run state and whether or
89 For options taking one or more FMRI operands (see \fBsmf\fR(5) for a
90 description of an FMRI), if the operand specifies a service (instead of a
91 service instance), and that service has only a single instance, \fBinetadm\fR
92 operates on that instance.
95 If a service name is supplied and it contains more than one instance or a
96 pattern is supplied and it matches more than one instance, a warning
97 message is displayed and that operand is ignored.
100 For those options taking \fIname\fR=\fIvalue\fR parameters, a description of
101 each of the possible names and the allowed values is found in the
102 \fBinetd\fR(1M) man page.
105 The following options are supported:
113 Display a usage message.
123 Lists all default \fBinet\fR service property values provided by \fBinetd\fR in
124 the form of \fIname\fR=\fIvalue\fR pairs. If the value is of boolean type, it
125 is listed as TRUE or FALSE.
131 \fB\fB-l\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
135 List all properties for the specified service instances as
136 \fIname\fR=\fIvalue\fR pairs. In addition, if the property value is inherited
137 from the default value provided by \fBinetd\fR, the \fIname\fR=\fIvalue\fR pair
138 is identified by the token (default). Property inheritance occurs when
139 properties do not have a specified service instance default.
145 \fB\fB-e\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
149 Enable the specified service instances.
155 \fB\fB-d\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
159 Disable the specified service instances.
165 \fB\fB-m\fR {\fIFMRI\fR | \fIpattern\fR}...{\fIname\fR=\fIvalue\fR}...\fR
169 Change the values of the specified properties of the identified service
170 instances. Properties are specified as whitespace-separated
171 \fIname\fR=\fIvalue\fR pairs. To remove an instance-specific value and accept
172 the default value for a property, simply specify the property without a value,
173 for example, \fBname=\fR .
179 \fB\fB-M\fR {\fIname\fR=\fIvalue\fR}...\fR
183 Change the values of the specified \fBinetd\fR default properties. Properties
184 are specified as whitespace-separated \fIname\fR=\fIvalue\fR pairs.
189 \fBExample 1 \fRDisplaying Properties for a Service
192 The following command displays the properties for the \fBspray\fR service.
197 # inetadm -l network/rpc/spray:default
206 exec="/usr/lib/netsvc/spray/rpc.sprayd"
209 default bind_fail_max=-1
210 default bind_fail_interval=-1
211 default max_con_rate=-1
212 default max_copies=-1
213 default con_rate_offline=-1
214 default failrate_cnt=40
215 default failrate_interval=60
216 default inherit_env=TRUE
217 default tcp_trace=FALSE
218 default tcp_wrappers=FALSE
219 default connection_backlog=10
224 \fBExample 2 \fRDisplaying Default Properties
227 The following command displays default properties.
236 bind_fail_interval=-1
245 default connection_backlog=10
250 \fBExample 3 \fRChanging Property Values for a Service
253 The following command changes \fBrpc_high_version\fR to \fB3\fR and
254 \fBtcp_trace\fR to \fBTRUE\fR for the \fBspray\fR service.
259 # inetadm -m network/rpc/spray:default \e
260 rpc_high_version=3 tcp_trace=TRUE
261 # inetadm -l network/rpc/spray:default
270 exec="/usr/lib/netsvc/spray/rpc.sprayd"
273 default bind_fail_max=-1
274 default bind_fail_interval=-1
275 default max_con_rate=-1
276 default max_copies=-1
277 default con_rate_offline=-1
278 default failrate_cnt=40
279 default failrate_interval=60
280 default inherit_env=TRUE
282 default tcp_wrappers=FALSE
283 default connection_backlog=10
289 The following exit values are returned:
296 Operation completed successfully.
305 A fatal error occurred. An accompanying error message will provide further
315 Invalid arguments were supplied, such as an ambiguous service FMRI or pattern.
320 See \fBattributes\fR(5) for descriptions of the following attributes:
328 ATTRIBUTE TYPE ATTRIBUTE VALUE
330 Interface Stability Evolving
335 \fBinetd\fR(1M), \fBsvccfg\fR(1M), \fBattributes\fR(5), \fBsmf\fR(5)