inetadm – intro

inetadm command is used for observing and managing inetd services in Solaris 10.

If you run this command without any parameters, you’ll simply get a list of all the services it manages along with their current status:

solaris# inetadm
ENABLED   STATE          FMRI
enabled   online         svc:/application/x11/xfs:default
enabled   online         svc:/application/font/stfsloader:default
enabled   offline        svc:/application/print/rfc1179:default
enabled   online         svc:/network/rpc/gss:default
disabled  disabled       svc:/network/rpc/mdcomm:default
disabled  disabled       svc:/network/rpc/meta:default
disabled  disabled       svc:/network/rpc/metamed:default
disabled  disabled       svc:/network/rpc/metamh:default
...

I needed to start a time service on my system:

solaris# inetadm | grep time
disabled  disabled       svc:/network/daytime:dgram
disabled  disabled       svc:/network/daytime:stream
disabled  disabled       svc:/network/time:dgram
disabled  disabled       svc:/network/time:stream

To enable or disable a certain network service, you have to use -e (enable) and -d (disable) command line parameters. For instance, the following command has activated time for UDP:

solaris# inetadm -e svc:/network/time:stream

Now all we have to do is just make sure the service has been successfully started:

solaris# inetadm | grep time
disabled  disabled       svc:/network/daytime:dgram
disabled  disabled       svc:/network/daytime:stream
disabled  disabled       svc:/network/time:dgram
enabled   online         svc:/network/time:stream

Comments

  1. Please, correct “use strong>-e (enable)” on correct html code

  2. Thanks, Misha!

  3. Thanks useful stuff

Speak Your Mind

*