DOYENSYS Knowledge Portal




We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal




Friday, January 13, 2017

Commands to check the OS services in SOLARIS 10

                               
                                   



Service Management Facility(SMF)

The Service Management Facility (SMF) is a core component of the new Predictive Self-Healing set of technologies introduced in Solaris 10. With SMF, system administrators can use simple command line utilities to easily identify, observe, and manage both the services provided by the system and the system itself.


SMF has a limited yet powerful set of commands. Each command has several options which cover the tasks required to manage Solaris systems. The following table lists the SMF commands.

Command   -  Description





svcs        -      Reports service status

svcadm  -     Used for service management: e.g., starting, stopping and restoring services


EXAMPLE:
my-system# svcs -a

STATE         STIME      FMRI
legacy_run    Apr_18     lrc:/etc/rcS_d/S51installupdates
legacy_run    Apr_18     lrc:/etc/rc2_d/S47pppd
legacy_run    Apr_18     lrc:/etc/rc2_d/S99audit
legacy_run    Apr_18     lrc:/etc/rc3_d/S76snmpdx
legacy_run    Apr_18     lrc:/etc/rc3_d/S90samba
disabled      Apr_18     svc:/network/ipfilter:default
disabled      Apr_18     svc:/network/rpc/keyserv:default
disabled      Apr_18     svc:/network/rpc/nisplus:default
disabled      Apr_18     svc:/application/print/server:default
disabled      Apr_18     svc:/network/dhcp-server:default
disabled      Apr_18     svc:/network/http:apache2
online        Apr_18     svc:/system/svc/restarter:default
online        Apr_18     svc:/network/pfil:default
online        Apr_18     svc:/network/physical:default
online        Apr_18     svc:/system/identity:domain
online        Apr_18     svc:/system/cryptosvc:default
online        Apr_18     svc:/network/inetd:default
online        Apr_18     svc:/network/telnet:default
online        Apr_18     svc:/network/ssh:default
online        Apr_18     svc:/system/zones:default
online        Apr_18     svc:/network/nfs/nlockmgr:default
offline       Apr_18     svc:/application/print/ipp-listener:default
offline       Apr_18     svc:/application/print/rfc1179:default


Displaying Individual Services

my-system# svcs -a |grep ftp
online         Jan_10   svc:/network/ftp:default


1   my-system# svcadm enable apache2
2      
3                   To display its status, use the svcs command:

4             my-system# svcs http
5                   STATE       STIME     FMRI
   online      11:26:46  svc:/network/http:apache2

Similarly we can disable and restart the services. 








No comments: