list of active currently running services
svcs
list of all services
svcs -a
to restart a service
svcadm restart /network/ssh
#processes
equivalent of ps axf on solaris
ps -fade
#to see listening services
netstat -a
#to reboot system in 30 seconds
shutdown -i 6 -g 30
#to ping something
ping -vs media.ootboot.com
#to creat svcs manifest
svccfg export /network/httpd
then edit as you wish
svccfg import mymanifest.xml
#see failed services in admin mode
svcs -vx
#see description of a service
svcs -l /network/apache22
#see processes of a service
svc -p /network/apache22
#create new user - paths are specific to the environment
useradd -m -d /home/les -g webusers -G staff -s /usr/bin/bash les
#see memory
vmstat
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 s1 s2 s3 in sy cs us sy id
3 0 0 41699024 1102068 119 2523 55 0 0 0 0 -0 -0 28 36 2650 431769 8742 40 17 43
I'm not actually sure how to read the output of vmstat
The other command is prstat
prstat -Z 1 1
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
26285 webservd 23M 19M sleep 47 0 0:00:02 0.0% httpd/1
27641 root 4116K 2684K cpu0 59 0 0:00:00 0.0% prstat/1
10959 postgres 45M 38M sleep 59 0 0:41:02 0.0% postgres/1
15121 root 4008K 1464K sleep 59 0 0:00:00 0.0% sshd/1
26584 webservd 19M 16M sleep 59 0 0:00:00 0.0% httpd/1
25804 root 8432K 4492K sleep 59 0 0:00:00 0.0% sshd/1
3393 root 0K 0K sleep 60 - 0:00:00 0.0% zsched/1
25881 admin 2940K 2224K sleep 59 0 0:00:00 0.0% bash/1
3510 root 3664K 1776K sleep 59 0 0:00:07 0.0% syslogd/12
26290 webservd 19M 16M sleep 52 0 0:00:00 0.0% httpd/1
26287 webservd 19M 16M sleep 1 0 0:00:00 0.0% httpd/1
3507 root 1940K 1196K sleep 59 0 0:00:03 0.0% sac/1
26582 webservd 19M 16M sleep 57 0 0:00:00 0.0% httpd/1
3505 root 2688K 1208K sleep 59 0 0:00:55 0.0% cron/1
26286 webservd 23M 19M sleep 59 0 0:00:01 0.0% httpd/1
ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
66 38 238M 223M 1.4% 1:28:56 0.0% z13851AA
Total: 38 processes, 109 lwps, load averages: 8.22, 6.44, 6.41