Basic solaris commands cheatsheet

List all services
svcs

List all services including service instances that are temporarily disabled

svcs -a
List the process associated with a service

svcs -p <service name>

-bash-3.2$ svcs -p sun-apache22
STATE STIME FMRI
online May_11 svc:/network/http:sun-apache22
10:33:59 17057 httpd
10:56:00 21257 httpd
May_11 28952 httpd
-bash-3.2$ ps -ef |grep 17057
webservd 17057 28952 0 10:33:59 ? 0:00 /opt/webstack/apache2/2.2/bin/httpd -D 32bit -f /etc/opt/webstack/apache2/2.2/h
-bash-3.2$

SMF Milestones
SMF milestones are services that aggregate multiple service dependencies and describe a specific state of system readiness on which other services can depend. Administrators can see the list of milestones that are defined by using the svcs command, as shown in Listing 6.

# svcs milestone*

Checking for errors

#svcs -xv

Log file for SMF

cd /var/svc/log
File:svc.startd.log
http://www.oracle.com/technetwork/articles/servers-storage-admin/intro-smf-basics-s11-1729181.html

Leave a Reply

Your email address will not be published. Required fields are marked *