Contidos dentroLocalizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (8966 KB)
inetadm(1M)Name | Synopsis | Description | Options | Examples | Exit Status | Attributes | See Also Name
Synopsisinetadm inetadm -? inetadm -p
inetadm -l {FMRI | pattern}
inetadm -e {FMRI | pattern}
inetadm -d {FMRI | pattern}
inetadm -m {FMRI | pattern}... {name=value}...
inetadm -M {name=value}...
Description
The inetadm utility provides the following capabilities for inetd-managed SMF services: See smf(5) for a description of an SMF service. With no arguments, inetadm lists all services under inetd(1M) control, including such attributes as their current run state and whether or not they are enabled. Options
For options taking one or more FMRI operands (see smf(5) 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, inetadm operates on that instance. If a service name is supplied and it contains more than one instances or a pattern is supplied and and it matches more than one instance, a warning message is displayed and that operand is ignored. For those options taking name=value parameters, a description of each of the possible names and the allowed values is found in the inetd(1M) man page. The following options are supported: ExamplesExample 1 Displaying Properties for a ServiceThe following command displays the properties for the spray service. # 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
Example 2 Displaying Default PropertiesThe following command displays default properties. # 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 Example 3 Changing Property Values for a ServiceThe following command changes rpc_high_version to 3 and tcp_trace to TRUE for the spray service. # inetadm -m network/rpc/spray:default \
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
Exit Status
The following exit values are returned: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 5 Jul 2007Name | Synopsis | Description | Options | Examples | Exit Status | Attributes | See Also |
||||||