What is the result of executing the following command?

What is the result of executing the following command?
svcs -d svc:/network/ssh:default

What is the result of executing the following command?
svcs -d svc:/network/ssh:default

A.
disables the svc:/network/ssh:default service

B.
displays the services that svc: /network/ssh:default is dependent on

C.
displays the services that are dependent on the svc: /network/ssh:default service

D.
deletes the svc: /network/ssh:default service

Explanation:
The svcs command displays information about service instances as recorded in the
service configuration repository.
-d Lists the services or service instances upon which the given service instances depend.
Reference: man svcs



Leave a Reply 3

Your email address will not be published. Required fields are marked *

two × 3 =


Dupek

Dupek

B
man svcs
-d
Lists the services or service instances upon which the
given service instances depend.

Qiqe

Qiqe

Another way to view dependency information is to use the -d option to svcs. While this gives us information about the state of the dependent service, it does not tell us what the dependency relationship might be:

# svcs -d svc:/system/zones:default
gman@rampage:~$ svcs -d zones
STATE STIME FMRI
disabled Jun_14 svc:/system/pools:default
disabled Jun_14 svc:/system/pools/dynamic:default
online Jun_14 svc:/system/zones-monitoring:default
online Jun_14 svc:/milestone/multi-user-server:default

Answer=B