Yes. Use regcmp to parse the output of svcadmin -l for a string like
'online' or 'maintenance'
On Dec 3, 2009 4:02 AM, wrote:
Has anyone done any work gathering the status of services via the Solaris
SMF tool kit? There are some interesting caveats.
1. svcs returns zero whether the service is
Has anyone done any work gathering the status of services via the Solaris
SMF tool kit? There are some interesting caveats.
1. svcs returns zero whether the service is running or not.
2. Service names have unusual characters (:/) that can update Cf if
trying to make them into classes.
Sincere