Book Image

Oracle Solaris 11: First Look

By : Philip P. Brown
Book Image

Oracle Solaris 11: First Look

By: Philip P. Brown

Overview of this book

Oracle Solaris provides innovative, built-in features that deliver breakthrough high availability, advanced security, efficiency, and industry-leading scalability and performance to help businesses grow. "Oracle Solaris 11: First Look" covers the new features and functionality of Oracle Solaris 11 and how these new features and improvements will make it easier to deploy services to the enterprise while improving performance and reducing total cost of ownership.This book starts with coverage of Image Packaging System and the new installation methods. It then moves swiftly to network configuration. The book also includes some security features and improvements.  
Table of Contents (19 chapters)
Oracle Solaris 11: First Look
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
IPS Package Reference
New ACL Permissions and Abbreviations
Index

Notifications triggered by SMF state transitions


SMF has learned a new trick with Solaris 11; it can now tell you when services alter state. This is done via the new svccfg subcommand, setnotify.

It is possible to send notifications via SNMP or e-mail. It is also possible to set up notifications for individual services or for all services at once.

SMF notifications through e-mail, also known as SMTP

Compare the following two examples for setting up e-mail alerts:

// To email when any service goes into or comes out of maintenance state:
svccfg setnotify -g maintenance mailto:[email protected]

// To email when just this service transitions
svccfg -s mysvcname setnotify maintenance mailto:[email protected]

Note

-g does not mean "goes to". It is a flag for "global". Do not mix it with a line intended for an individual service, or you will get many more notifications than you have planned!

There are many other transition types and state names. It is possible to alert only transitions to a state...