Saturday, 30 July 2011

3. SMF (Service Managment Facility) - Real Time


3. SMF (Service Management Facility)

SMF:
ü  It is a advanced feature in Solaris10
ü  Which will control services under SMF
ü  We can start and stop the services

-          All the services stored in ‘/etc/init.d’
-          We can’t  stop services dependency/ dependent
#svcs               (display online & offline and legacy)
#svcs –a           (display online, offline, and disable)
#svcs |more

How to find out dependency?
#svcs –d svc:/network/nfs/server:default

How to find out dependent?
#svcs –D svc:/network/nfs/server:default

Note: if any one of these services in disable then NFS will not get into online



Issue 1: service (NFS) is in disable, but it is not getting ‘online’ why?
A: check out the dependency & dependent and make it online. Then make the service online. If it is in maintenance mode means configuration problem.  Configuration problem means implementation team take care.

Issue 2: why the service group not running? What is the reason?
#svcs –xv svc:/network/rpc/keyserv: default
Same above reason find out dependency and dependent, if any in disable mode make it online.

Issue 3: If service group lost
# cd /etc/svc
Repository.db

Service ‘repository.db’ file store in /etc/svc

Restoring ‘repository.db’
# cd /lib/svc/bin
# ./restore_repository              (execute)

To see execute or text
# file restore_repository
# cd /var/svc/profile

All SMF scripts are store under /var/svc/profile

Service categories:

#cd manifest
#ls
  1. Application
  2. milestone –runlevel information
  3. platform
  4. system
  5. device
  6. network
  7. site

No comments:

Post a Comment