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 "Jul 5, 2007"
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}...
53 The \fBinetadm\fR utility provides the following capabilities for
54 \fBinetd\fR-managed SMF services:
59 Provides a list of all such services installed.
65 Lists the services' properties and values.
71 Allows enabling and disabling of services.
77 Allows modification of the services'property values, as well as the default
78 values provided by \fBinetd\fR.
82 See \fBsmf\fR(5) for a description of an SMF service.
85 With no arguments, \fBinetadm\fR lists all services under \fBinetd\fR(1M)
86 control, including such attributes as their current run state and whether or
91 For options taking one or more FMRI operands (see \fBsmf\fR(5) for a
92 description of an FMRI), if the operand specifies a service (instead of a
93 service instance), and that service has only a single instance, \fBinetadm\fR
94 operates on that instance.
97 If a service name is supplied and it contains more than one instances or a
98 pattern is supplied and and it matches more than one instance, a warning
99 message is displayed and that operand is ignored.
102 For those options taking \fIname\fR=\fIvalue\fR parameters, a description of
103 each of the possible names and the allowed values is found in the
104 \fBinetd\fR(1M) man page.
107 The following options are supported:
115 Display a usage message.
125 Lists all default \fBinet\fR service property values provided by \fBinetd\fR in
126 the form of \fIname\fR=\fIvalue\fR pairs. If the value is of boolean type, it
127 is listed as TRUE or FALSE.
133 \fB\fB-l\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
137 List all properties for the specified service instances as
138 \fIname\fR=\fIvalue\fR pairs. In addition, if the property value is inherited
139 from the default value provided by \fBinetd\fR, the \fIname\fR=\fIvalue\fR pair
140 is identified by the token (default). Property inheritance occurs when
141 properties do not have a specified service instance default.
147 \fB\fB-e\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
151 Enable the specified service instances.
157 \fB\fB-d\fR {\fIFMRI\fR | \fIpattern\fR}...\fR
161 Disable the specified service instances.
167 \fB\fB-m\fR {\fIFMRI\fR | \fIpattern\fR}...{\fIname\fR=\fIvalue\fR}...\fR
171 Change the values of the specified properties of the identified service
172 instances. Properties are specified as whitespace-separated
173 \fIname\fR=\fIvalue\fR pairs. To remove an instance-specific value and accept
174 the default value for a property, simply specify the property without a value,
175 for example, \fBname=\fR .
181 \fB\fB-M\fR {\fIname\fR=\fIvalue\fR}...\fR
185 Change the values of the specified \fBinetd\fR default properties. Properties
186 are specified as whitespace-separated \fIname\fR=\fIvalue\fR pairs.
191 \fBExample 1 \fRDisplaying Properties for a Service
194 The following command displays the properties for the \fBspray\fR service.
199 # inetadm -l network/rpc/spray:default
208 exec="/usr/lib/netsvc/spray/rpc.sprayd"
211 default bind_fail_max=-1
212 default bind_fail_interval=-1
213 default max_con_rate=-1
214 default max_copies=-1
215 default con_rate_offline=-1
216 default failrate_cnt=40
217 default failrate_interval=60
218 default inherit_env=TRUE
219 default tcp_trace=FALSE
220 default tcp_wrappers=FALSE
221 default connection_backlog=10
226 \fBExample 2 \fRDisplaying Default Properties
229 The following command displays default properties.
238 bind_fail_interval=-1
247 default connection_backlog=10
252 \fBExample 3 \fRChanging Property Values for a Service
255 The following command changes \fBrpc_high_version\fR to \fB3\fR and
256 \fBtcp_trace\fR to \fBTRUE\fR for the \fBspray\fR service.
261 # inetadm -m network/rpc/spray:default \e
262 rpc_high_version=3 tcp_trace=TRUE
263 # inetadm -l network/rpc/spray:default
272 exec="/usr/lib/netsvc/spray/rpc.sprayd"
275 default bind_fail_max=-1
276 default bind_fail_interval=-1
277 default max_con_rate=-1
278 default max_copies=-1
279 default con_rate_offline=-1
280 default failrate_cnt=40
281 default failrate_interval=60
282 default inherit_env=TRUE
284 default tcp_wrappers=FALSE
285 default connection_backlog=10
292 The following exit values are returned:
299 Operation completed successfully.
308 A fatal error occurred. An accompanying error message will provide further
318 Invalid arguments were supplied, such as an ambiguous service FMRI or pattern.
324 See \fBattributes\fR(5) for descriptions of the following attributes:
332 ATTRIBUTE TYPE ATTRIBUTE VALUE
334 Interface Stability Evolving
340 \fBinetd\fR(1M), \fBsvccfg\fR(1M), \fBattributes\fR(5), \fBsmf\fR(5)