SMF INET Admin

por | 11 agosto, 2008

###### Service Management with ‘inetadm’ #########

-bash-3.00# which inetadm
/usr/sbin/inetadm

inetadm controls INETD services

Note: INETD is a super-server which proxies connections to servers
( such as telnet )

client -> INETD -> telnet

Note: INETD services are traditionally defined in /etc/inetd.conf

Telnet is enabled by default


-bash-3.00# inetadm |grep online | wc -l
19


bash-3.00# svcs -l telnet
fmri svc:/network/telnet:default
name Telnet server
enabled true
state online
next_state none
state_time Sun Aug 10 18:17:33 2008
restarter svc:/network/inetd:default
contract_id 106

bash-3.00# inetadm -l telnet
SCOPE NAME=VALUE
name="telnet"
endpoint_type="stream"
proto="tcp6"
isrpc=FALSE
wait=FALSE
exec="/usr/sbin/in.telnetd"
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

Note: inetadm permits control of key/value or name/value pairs of services.


bash-3.00# inetadm -?
Usage:
inetadm
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}...

Without any options inetadm lists all inetd managed services.

Options:
-? Print help.
-p List all default inetd property values.
-l List all inetd property values for the inet service(s).
-e Enable the inet service(s).
-d Disable the inet service(s).
-m Modify the inet service(s) inetd property values.
-M Modify default inetd property values.

bash-3.00# inetadm -d telnet
bash-3.00# echo $?
0

inetadm -d FMRI – disables services
inetadm -e FMRI – enables services


-bash-3.00# inetadm -l telnet
SCOPE NAME=VALUE
name="telnet"
endpoint_type="stream"
proto="tcp6"
isrpc=FALSE
wait=FALSE
exec="/usr/sbin/in.telnetd"
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

inetadm modify


-bash-3.00# inetadm -m svc:/network/telnet:default bind_addr="127.0.0.1"
-bash-3.00# echo $?

# inetadm -l telnet
SCOPE NAME=VALUE
name="telnet"
endpoint_type="stream"
proto="tcp6"
isrpc=FALSE
wait=FALSE
exec="/usr/sbin/in.telnetd"
user="root"
bind_addr="127.0.0.1"
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


inetadm -m svc:/network/telnet:default bind_addr=»»

Global Values for inetadm

-bash-3.00# 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
connection_backlog=10

INETD ( effect changes globally. i.e. bind_address, etc.)
-telnet
-ftfpd (effect changes services scope based. i.e. bind_address )


bash-3.00# inetadm -?
Usage:
inetadm
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}...

Without any options inetadm lists all inetd managed services.

Options:
-? Print help.
-p List all default inetd property values.
-l List all inetd property values for the inet service(s).
-e Enable the inet service(s).
-d Disable the inet service(s).
-m Modify the inet service(s) inetd property values.
-M Modify default inetd property values.

change global settings

inetadm -M max_copies=10