The inetd (Internet services daemon) is responsible for starting standard Internet services when a system boots. These services include applications that use TCP or UDP as their transport layer protocol. You can modify existing Internet services or add new services using the SMF commands. INETD service is a super service which helps proxy connections for servers.

client > INETD > telnet

Service management with svc INET admin in Solaris 10 - Part IV_bashcodes

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]

bash-3.2# which inetadm    #located the file

bash-3.2# vi /etc/inetd.conf    #config file location

bash-3.2# inetadm    #check all the services under inetadm

bash-3.2# inetadm | grep online |wc -l   #gives the number of online services.

bash-3.2# inetadm –help    #gives the number of commands with inet

bash-3.2# inetadm -l telnet    #lists telnet service

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

[/symple_box]

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

 

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]

bash-3.2# inetadm -d telnet     #test the service disabling the service.

bash-3.2# svcs -l telnet    #check the telnet status

[/symple_box]

 

inetadm -e FMRI    #enables service

inetadm -d FMRI    #disables service

[symple_divider style=”solid” margin_top=”20px” margin_bottom=”20px”]

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]

If you like the blog please follow us [icon name=”icon-facebook”] [icon name=”icon-twitter”] [icon name=”icon-google-plus-sign”]

[/symple_box]