Monday Aug 06, 2012

Basic and Advanced System Services Administration in Oracle Solaris 11

Does taming the behavior of your OS services manually make you feel less than your usual playful self? Lighten up. The Service Management Facility (SMF), introduced in Oracle Solaris 10 and extended in Oracle Solaris 11, provides the discipline those unruly services need. Here are two articles that will help get the most out of it.

Introducing the Basics of the Service Management Facility in Oracle Solaris 11

The SMF keeps track of the relationship between the services in your instance of Solaris. With this information, it can start services much more quickly at boot time, and it restart them automatically in the correct order if any of them fail. And that's only the beginning. In this article Glynn Foster explains what SMF does, and how to perform basic services administration with it, including how to use these four commands to get information about, and manage, your system services:

Command Description
svcadm Manage the state of service instances
svcs Provide information about services, including their status
svcprop Get information about service configuration properties
svccfg Import, export, and modify service configuration

Advanced Administration with the Service Management Facility in Oracle Solaris 11

In this article, Glynn Foster describes how to use some of the more advanced features of SMF, including service bundles, which you can use to deliver custom configuration across systems. And SMF profiles, which modify services to suit a particular installation. The introduction of layers in Oracle Solaris 11 provides better tracking of vendor-supplied customizations and administrative customizations for services and instances of services in four discrete layers, and site profiles, also described in this article, help you manage these layers more easily.

- Rick

Website Newsletter Facebook Twitter

Monday Nov 07, 2011

5 Commands That Make Solaris Administration Easier

Face it. Not all of us have got it figured out.

If the Service Management Facility in Oracle Solaris 10 happens to be one of those areas that you didn't quite understand as well as you had intended, you may be interested to know that it's not as complicated as, say, the interplay between geopolitics and energy policy.

In fact, SMF only has five commands:

svcs Get detailed views of the service state of all service instances in the service configuration repository
svcadm Perform common service management tasks, such as enabling, disabling, or restarting service instances
svcfg Display and manipulate the contents of the service configuration repository
svcprop Retrieves property values from the service configuration repository with an output format appropriate for use in shell scripts
inetadm Observe or control services controlled by inetd

The svcfg and svcprop commands deal with the service repository (maintains configuration info and run-time data for services). The inetadm command focuses on inetd-controlled services. You can get more information about these three commands in the Oracle Solaris 10 Basic System Administration Guide, available from The Solaris 10 System Administration Documentation Collection. Or, if it hasn't moved, use this link.

If you want to learn about the many things that you can do with the first two commands, svcs and svcadm, read this technical white paper:

Easier System Administration with the Solaris Service Management Facility

It describes how you can use the svcs and svcadm commands to:

  • Display all the services currently running
  • Display information about individual services
  • Display dependencies between services
  • List the individual processes that constitute a service
  • Perform common administrative tasks such as starting a service and then monitoring it
  • Investigate system faults
  • It's a good way to become familiar with real-world uses of the SMF. And, perhaps, put you in the practice of fully developing your perspective before you are moved to unleash it upon the world.

    - Rick Ramsey and Cindy Swearingen
    Website
    Newsletter
    Facebook
    Twitter

    About

    Contributors:
    Rick Ramsey
    Kemer Thomson
    and members of the OTN community

    Search

    Archives
    « April 2014
    SunMonTueWedThuFriSat
      
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    12
    13
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
       
           
    Today
    Blogs We Like